Skip to content

pykit3/k3git

Repository files navigation

k3git

Action-CI Build Status Documentation Status Package

wrapper of git command-line

k3git is a component of pykit3 project: a python3 toolkit set.

k3git is wrapper of git command-line.

To parse a git command git --git-dir=/foo fetch origin:

>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds
['fetch', 'origin']

>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args()
['--git-dir=/foo']

Install

pip install k3git

Synopsis

>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds
['fetch', 'origin']
>>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args()
['--git-dir=/foo']

Author

Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com

About

wrapper of git command-line

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages