Giter Club home page Giter Club logo

pycli's Introduction

1、pycli是什么?
python实现的命令工具集,可以安装到系统目录,像使用系统命令一样使用pycli的命令。
初始化版本仅搭建了项目框架,实现了一个演示用的log命令。

2、安装pycli
pip及python click安装参考:
http://blog.csdn.net/m_changgong/article/details/51794189

方法一:
第一次安装pycli
sudo pip install git+https://github.com/changong/pycli.git

pycli发布新版本后更新安装
sudo pip install git+https://github.com/changong/pycli.git --upgrade

方法二:
下载pycli项目
git clone https://github.com/changong/pycli.git

在pycli的上级目录执行安装命令
第一次安装pycli
sudo pip ./pycli

pycli发布新版本后更新安装
sudo pip ./pycli --upgrade

3、pycli的安装位置
终端执行 which pycli
会显示pycli的安装位置 /usr/local/bin/pycli

4、使用pycli命令行工具集
 终端执行 pycli
 会列出pycli帮助信息及提供的命令列表
 例如:
 localhost:pycli zhangyg$ pycli
Usage: pycli [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  log

使用pycli命令集中的log命令,示例如下:
pycli log -m "pycli log cmd"


pycli's People

Contributors

changong avatar

Stargazers

 avatar

Watchers

 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.