Skip to content

Instantly share code, notes, and snippets.

@thatkookooguy
Created June 28, 2018 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatkookooguy/a94097fd25e9fc5cb6e97d3cb8f40a1b to your computer and use it in GitHub Desktop.
Save thatkookooguy/a94097fd25e9fc5cb6e97d3cb8f40a1b to your computer and use it in GitHub Desktop.

@beforeAll

will define a specific function that should run before actual cli functions. can be either a promise or a value return

cli-base.ts

will generate the cli by importing the given file

kb-generate-cli.js

node command line tool that will import the given file to cli-base, compile it to javascript, and install it as a global node library to allow global cli use given arguments: cliName inputFile inputClass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment