Skip to content

A python module to help implementing command-line applications with a hierarchic tree of commands.

Notifications You must be signed in to change notification settings

thomasvs/python-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module implements commands with subtrees of commands.

Suggested use in your project (if you are using git):

- create myproject/extern directory and package:
  export PROJECT=myproject
  mkdir -p $PROJECT/extern
  touch $PROJECT/extern/__init__.py
- add the submodule:
  git submodule add https://github.com/thomasvs/python-command.git $PROJECT/extern/python-command
  pushd
  cd $PROJECT/extern
  ln -sf python-command/command command
  popd
- test if you can import it:
  python -c "from $PROJECT.extern.command import command; print command"
- Commit the result to git
  git add $PROJECT/extern/command
  git commit -m "add python command module" .gitmodules $PROJECT/extern/command

About

A python module to help implementing command-line applications with a hierarchic tree of commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages