UNPKG

totvs-dtsenv-cli

Version:

TOTVS Datasul Environment Command Line

27 lines (23 loc) 1.14 kB
#!/usr/bin/env node import * as program from "commander"; import StartupCommand from './commands/StartupCommand'; import ShutdownCommand from './commands/ShutdownCommand'; import SetupCommand from './commands/SetupCommand'; import AddCommand from './commands/AddCommand'; import StartCommand from './commands/StartCommand'; import StopCommand from './commands/StopCommand'; import UpCommand from './commands/UpCommand'; import DownCommand from './commands/DownCommand'; import PullCommand from './commands/PullCommand'; let commander = new program.Command('dts'); commander.version('1.0.11'); const startupCommand = new StartupCommand(commander); const shutdownCommand = new ShutdownCommand(commander); const setupCommand = new SetupCommand(commander); const addCommand = new AddCommand(commander); const startCommand = new StartCommand(commander); const stopCommand = new StopCommand(commander); const upCommand = new UpCommand(commander); const downCommand = new DownCommand(commander); const pullCommand = new PullCommand(commander); commander.parse(process.argv);