forked from breck7/ScrollHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.js
executable file
·26 lines (20 loc) · 839 Bytes
/
cli.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /usr/bin/env node
// NPM ecosystem includes
const parseArgs = require("minimist")
const path = require("path")
const fs = require("fs")
const child_process = require("child_process")
// Particles Includes
const { Disk } = require("scrollsdk/products/Disk.node.js")
const { Particle } = require("scrollsdk/products/Particle.js")
const { ScrollCli, ScrollFile, ScrollFileSystem, SimpleCLI } = require("scroll-cli")
const { ScrollHub } = require("./ScrollHub.js")
const packageJson = require("./package.json")
class ScrollHubCLI extends SimpleCLI {
welcomeMessage = `\n🛜 WELCOME TO SCROLLHUB (v${packageJson.version})`
startCommand() {
new ScrollHub().startAll()
}
}
if (module && !module.parent) new ScrollHubCLI().executeUsersInstructionsFromShell(parseArgs(process.argv.slice(2))._)
module.exports = { ScrollHubCLI }