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

Commit

Permalink
make validator commands required
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed Apr 22, 2024
1 parent 7033878 commit c104228
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions allocmd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def worker(environment, name=None, topic=None):
generateProdCompose(env)

@generate.command()
@click.option('--name', help='Name of the validator.')
@click.option('--network', help='Your preffered chain network to run the validator on.')
@click.option('--name',required=True, help='Name of the validator.')
@click.option('--network', required=True, type=click.Choice(['testnet', 'edgenet']), help='Your preffered chain network to run the validator on.')
def validator(name=None, network=None):
"""Initialize your Allora Worker Node with necessary boilerplates"""

Expand All @@ -121,6 +121,8 @@ def validator(name=None, network=None):
if click.confirm(colored("\nWould you like to proceed?", 'white', attrs=['bold']), default=True):
cprint("\nProceeding with the creation of validator node directory...", 'green')

os.makedirs(name, exist_ok=True)

file_configs = [
{
"template_name": "validator-docker-compose.yaml.j2",
Expand Down
3 changes: 1 addition & 2 deletions allocmd/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
cliVersion = "0.3.1"

cliVersion = "0.3.2"

0 comments on commit c104228

Please sign in to comment.