Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@black-flag/demo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@black-flag/demo

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

$ npx -p @black-flag/demo myctl --help


Black Lives Matter! Last commit timestamp Codecov Source license Uses Semantic Release!


Black Flag CLI Demo

Black Flag is a yargs-based library for creating deeply hierarchical CLI tools declaratively and simply.

This repository corresponds to the usage tutorial featured in the Black Flag documentation.

If you want a more advanced example of a CLI written with Black Flag but with debug-based custom error handling and listr2 + inquirer output support, check out xunnctl.

Usage

For a more in-depth look, see the tutorial corresponding to this demo repository.

You don't need to install this demo to use it. You can invoke it directly:

npx -p @black-flag/demo myctl init --lang 'node' --version=21.1

And see pretty debug text like so:

DEBUG='*' npx -p @black-flag/demo myctl init --lang 'node' --version=21.1

If you do want to install the CLI for some reason, you should install it globally:

npm install -g @black-flag/demo

Either way, you can use the --help option to determine what the demo CLI can do:

npx -p @black-flag/demo myctl --help

Appendix 🏴

License

See LICENSE.

Contributing and Support

New issues and pull requests are always welcome and greatly appreciated! 🤩 Just as well, you can star 🌟 this project to let me know you found it useful! ✊🏿 Or you could buy me a beer 🥺 Thank you!

See CONTRIBUTING.md and SUPPORT.md for more information.

Contributors

All Contributors

Thanks goes to these wonderful people (emoji key):

Bernard
Bernard

🚇 💻 📖 🚧 ⚠️ 👀
Add your contributions

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Package last updated on 30 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc