Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
restructure commands to take subgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed Apr 22, 2024
1 parent 657147b commit b177494
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion allocmd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ def cli():
"""A CLI Tool that handles creation of an Allora Worker Node"""
pass

@cli.group()
def generate():
"""generate scaffolded files and directories depending on the type passed."""
pass

@generate.command()
@click.command()
@click.option('--env', 'environment', required=True, type=click.Choice(['dev', 'prod']), help='Environment to generate for')
@click.option('--name', required=False, help='Name of the worker.')
@click.option('--topic', required=False, type=int, help='The topic ID the worker is registered with.')
def init(environment, name=None, topic=None):
def worker(environment, name=None, topic=None):
"""Initialize your Allora Worker Node with necessary boilerplates"""

if environment == 'dev':
Expand Down
2 changes: 1 addition & 1 deletion allocmd/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cliVersion = "0.2.5"
cliVersion = "0.2.6"

0 comments on commit b177494

Please sign in to comment.