Skip to content

Latest commit

 

History

History
75 lines (65 loc) · 3.17 KB

README.md

File metadata and controls

75 lines (65 loc) · 3.17 KB

Black Flag: Recipes and Examples

In this directory are a variety of recipes/examples for solving common CLI design problems using Black Flag, Black Flag Extensions, and Black Flag Checks.

Several of these examples are inspired by Yargs's own examples directory.

All examples are easy and simple to run:

  1. Clone this repository
  2. Change directory to the example you wish to run
  3. Run npm install (and then npm run build for TypeScript-based examples)
  4. Execute npx cli-name (replace "cli-name" with the name of the example's CLI)

The only exception is yargs-intro, which consists of a single README.md file containing code examples instead of an actual runnable program.

Black Flag Recipes

Black Flag Extensions Recipes