@httpc/cli
Version:
httpc cli for building function-based API with minimal code and end-to-end type safety
17 lines (16 loc) • 569 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("cross-fetch/polyfill");
const commander_1 = require("commander");
const version_1 = require("./version");
const commands_1 = require("./commands");
commander_1.program.name("httpc")
.version(version_1.VERSION, "-v, --version")
.configureHelp({
subcommandTerm: cmd => cmd.name()
})
.addCommand(commands_1.ClientCommand)
.addCommand(commands_1.CreateCommand)
.addCommand(commands_1.CallCommand);
commander_1.program.parse();