管理和维护用户的脚本和工具

commodore的Python项目详细描述


管理和维护用户的脚本和工具

安装

来自PYPI:

$ pip install commodore

…或从项目根目录:

$ python setup.py install

然后从命令行运行commodore,创建所需的配置和二进制目录,并定义所需的编辑器。

用法

创建新脚本:

$ commodore create helloworld

编辑脚本,包括shebang行:

#!/usr/bin/env python
print('Hello world!')

那就跑吧!:

$ helloworld
Hello world!

列出脚本:

$ commodore list
helloworld

编辑现有脚本:

$ commodore edit helloworld

最后,删除它:

$ commodore delete helloworld

使用–help/-h查看有关参数的信息:

$ commodore --help
usage: commodore [-h] {create,list,edit,delete} ...

positional arguments:
  {create,list,edit,delete}

  optional arguments:
    -h, --help            show this help message and exit

您可以通过导航手动检查创建、编辑和删除脚本的历史记录 到commodore二进制目录(默认~/.commodore/bin)并使用git命令 请参见更改日志。每次创建、编辑和删除都将作为git提交进行跟踪。

您还可以通过commodore运行git命令:

$ commodore git 'log -p'
...
$ commodore git 'remote add origin ssh://git@bitbucket.org/me/my_commodore_bin_dir'
$ commodore git 'push -u origin master'

发行说明

0.1.4:
  • Fix bug where file might disappear while editing causing a crash. Alerts user.
  • Now works with gvim if ^{tt2}$ is passed
0.1.3:

Support EDITOR command line args (eg. emacs -t)

0.1.2:

Add ^{tt3}$ command

0.1.1:

Updated README and notes on usage

0.1.0:

commodore create, edit, delete works

0.0.1:

Project created

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java连接在一个屏幕上成功下载,在第二个屏幕上用几乎相同的代码获得错误   java调用super。超级的方法,跳过超级。方法   使用Web服务连接到sharepoint 2013的Java应用程序   java我无法正确呈现editText   httpurlconnection如何在java中检查url连接状态   java Spring Security可以为同一用户接受多个密码吗?   java如何在PreparedStatement中使用自动生成的@Id?   java每个数组表示一个位模式   java我不确定如何记录鼠标在某个区域被点击的次数   spring如何解决:java。lang.NoSuchMethodError:javax。坚持不懈实体管理器。createStoredProcedureQuery(Ljava/lang/String;)   java如何为blackberry中listfield项内的不同字段触发事件   安卓使用Proguard混淆java代码   java在grails 2中与多个数据源有一个和一个域关联。十、   java在尝试在单击按钮时返回combobox值时一直出错   java我可以在setter中使用@Resource注释而不是字段吗?   java Eclipse调试步进不工作   java比较相同对象的两个表并选择不同的表