file-curator
Version:
Generate list of files in a text file of directory
53 lines (52 loc) • 1.83 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var columnify_1 = __importDefault(require("columnify"));
var help = function () {
console.log("***** FILE CURATOR *****");
console.log("");
console.log("File curator genertates a file-listing.txt file that will index and catalogue all files in the current directory, allowing you to have a master file that displays relevant information for each file. Sub-directories are also included.");
console.log("");
console.log("Usage: file-curator [options] [arguments]");
console.log("");
var data = [
{
option: "-n [filename]",
description: "Use custom named text file."
},
{
option: "-f",
description: "Force re-write for all files."
},
{
option: "-u",
description: "If there is description currently assigned to the file, skip asking to overwrite and use current."
},
{
option: "-e",
description: "Generates empty comment and just generates file list."
},
{
option: "-a",
description: "Sync with apple finder."
},
{
option: "-d",
description: "Calculate directory file size, can be slow depending on how big the directory is."
},
{
option: "-help",
description: "Brings up this help text."
}
];
var columns = columnify_1.default(data, {
columnSplitter: " ",
config: {
description: { maxWidth: 50 }
}
});
console.log(columns);
};
exports.default = help;