CliSite/commands/append.js

20 lines
481 B
JavaScript
Raw Normal View History

2022-06-12 09:38:38 +02:00
"use strict";
exports.__esModule = true;
exports.append = void 0;
function append(args, curdir) {
var buf = "";
if (args.length == 0) {
buf += "append: missing operand\n";
}
else {
if (curdir[args[0]] == undefined) {
curdir[args[0]] = "";
}
for (var i = 1; i < args.length; i++) {
curdir[args[0]] += args[i] + "\n";
}
}
return buf;
}
exports.append = append;
//# sourceMappingURL=append.js.map