Skip to content

Commit

Permalink
Add CLI placeholder to test generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Sep 24, 2016
1 parent d82b1f6 commit 5fdf93d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion osmerge/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
log = logging.getLogger(__name__)


@click.command()
@click.group()
def main():
logging.basicConfig(level=logging.INFO)
logging.getLogger('yorm').setLevel(logging.WARNING)


@main.command()
def new():
# TODO: this logic is only temporary to test the Config model
from .models import Config
Config.generate_example()


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def read_descriptions():
packages=setuptools.find_packages(),

entry_points={'console_scripts': [
'osmerge-cli = osmerge.cli:main',
'osmerge = osmerge.cli:main',
]},

long_description=read_descriptions(),
Expand Down

0 comments on commit 5fdf93d

Please sign in to comment.