Skip to content

Instantly share code, notes, and snippets.

@NargiT
Created April 30, 2019 21:43
Show Gist options
  • Save NargiT/8f6d054b7488b39e3a60ab4acc736cde to your computer and use it in GitHub Desktop.
Save NargiT/8f6d054b7488b39e3a60ab4acc736cde to your computer and use it in GitHub Desktop.
cli

https://medium.com/@jdxcode/12-factor-cli-apps-dd3c227a0e46

stdout for output stderr for messaging

color only if tty=dumb or pass --no-color

debug mode (DEBUG) debug mode for application (APPNAME_DEBUG)

no more than 2 args for cli use file instead

errors with explaination + wiki page

be able to submit issue with full stack

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