1.0.18 • Published 2 years ago

@visulima/cerebro v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

boxen, colorize, cli-table3, command-line-args and fastest-levenshtein

I would recommend reading this guide on how to make user-friendly command-line tools.

typescript-image npm-image license-image



Install

npm install @visulima/cerebro
yarn add @visulima/cerebro
pnpm add @visulima/cerebro

Usage

import Cli from "@visulima/cerebro";

// Create a CLI runtime
const cli = new Cli("cerebro");

// Your command
cli.addCommand({
    name: "main:colors",
    description: "Output colors", // This is used in the help output
    execute: ({ logger }) => {
        logger.info("Colors command");
    },
});

await cli.run();

Now you can run your CLI with node index.js and you should see the following output:

Cli Output

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guild.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

About

Related Projects

  • oclif - The Open CLI Framework
  • gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
  • meow - CLI app helper
  • commander.js - node.js command-line interfaces made easy
  • yargs - yargs the modern, pirate-themed successor to optimist.

License

The visulima package is open-sourced software licensed under the MIT

typescript-url: https://www.typescriptlang.org/ "TypeScript" "typescript"

1.1.34

12 months ago

1.1.38

12 months ago

1.1.37

12 months ago

1.1.36

12 months ago

1.1.35

12 months ago

1.1.39

11 months ago

1.1.40

10 months ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.29

1 year ago

1.1.30

1 year ago

1.1.31

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.24

1 year ago

1.1.21

1 year ago

1.1.16

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.20

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.0.37

2 years ago

1.0.36

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.1.11

2 years ago

1.0.43

2 years ago

1.1.10

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.49

2 years ago

1.0.51

2 years ago

1.0.50

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago