Giter Site home page Giter Site logo

e-cli's Introduction

一个cli的例子

使用了commander,download-git-repo两个包,做了一个简单的示例

拉取目标模板,添加了一个branch的参数,如 eric-cli -b master设置一个分支参数

下载的存放目录暂做固定tmp目录,可以做更改

本地启动,参数说明

# -r owner/name
GitHub - github:owner/name or simply owner/name
# -b branch
# -c 即 clone
clone - boolean default false - If true use git clone instead of an http download. While this can be a bit slower, it does allow private repositories to be used if the appropriate SSH keys are setup.
# -r 为github 用户/仓库名
node ./eric-cli.js -r Chaoleer/e-vue-ssr

# 安装后,以下同理
eric-cli -r Chaoleer/e-vue-ssr

# 指定分支
node ./eric-cli.js -r Chaoleer/e-vue-ssr -b develop

# 指定download-git-repo包是否使用clone
node ./eric-cli.js -r Chaoleer/e-vue-ssr -b develop -c

e-cli's People

Stargazers

lichao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.