cloudscript-uploader
Version:
Tool to upload your Javascript to CloudScript.
20 lines (17 loc) • 789 B
JavaScript
const yargs = require("yargs");
const cloudscriptUploader = require("../index.js");
const argv = yargs.usage("Usage: $0 [options]")
.alias("T", "title").required("T").describe("T", "Title to upload files.").string("T")
.alias("K", "key").required("K").describe("K", "Developer key for this Title.").string("K")
.alias("P", "path").required("P").describe("P", "Path to JS code file.").string("P")
.alias("L", "live").describe("L", "Uploaded code must go live or remain inactive.").boolean("L")
.help("h").alias("h", "help")
.default({
T: undefined, title: undefined,
K: undefined, key: undefined,
P: undefined, path: undefined,
L: true, live: true
})
.argv;
cloudscriptUploader(argv);