Skip to content

dabanlee/just-cli

Repository files navigation

just-cli

Just a simple CLI.

Installation

$ yarn global add just-cli

Get Started

Add template

$ just add
$ # template name:
$ # branch(master):
$ # git:

# or
$ just add -n <template name> -b <branch name> -g <git URL>

Example:

$ just add -n npm -b master -g https://github.com/dabanlee/npmkit.git

Template added:

{
    "npm": {
        "branch": "master",
        "git": "https://github.com/dabanlee/npmkit.git"
    }
}

Then:

$ just init <template-name> <project-name>
$ cd <project-name>
$ yarn
$ yarn start

Usage

Usage: just <command>

  VERSION: 2.0.0

  USAGE:
    $ just init       Initialize a new project
    $ just add        Add template
    $ just list       List the templates file
    $ just remove     Remove template

  OPTIONS:
    -h, --help        Show usage message
    -v, --version     Show the current version number

License

Licensed under the MIT License

Releases

No releases published

Packages

No packages published