dabanlee / just-cli

Just a simple CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Just a simple CLI.

License:MIT License


Languages

Language:TypeScript 85.9%Language:JavaScript 14.1%