Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

multiple import commands #38

Closed Jaymon closed 6 years ago

Jaymon commented 7 years ago
from foo.cli import main_bar, main_che

with a structure like:

/foo
  __init__.py
  cli.py (contains main_bar and main_che functions)

It sees main_bar but not main_che, however this works:

from foo.cli import main_bar
from foo.cli import main_che

Likewise, when I have defined commands then just main doesn't work, not sure if this is by design, but I should look into that.