Skip to content

Commit

Permalink
updating the device_group create and update help
Browse files Browse the repository at this point in the history
  • Loading branch information
Naor Livne committed Jan 15, 2019
1 parent 5b6878c commit 2be1383
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Binary file modified dist/nebulactl
Binary file not shown.
14 changes: 6 additions & 8 deletions nebulactl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from NebulaPythonSDK import Nebula
from os.path import expanduser

VERSION = "2.0.0"
VERSION = "2.0.1"


# i'm separating the nebulactl.py to 2 parts, the first is the NebulaCall class below which is going to be in charge of
Expand Down Expand Up @@ -442,10 +442,9 @@ def device_group_delete(device_group):
connection.delete_device_group(device_group)


# create requires all the params so prompting for everything that missing with sensible\empty defaults where possible
@device_groups.command(help="create a new nebula device_group", name="create")
@click.option('--device_group', '-d', help='nebula device_group to delete', prompt='what is the device_group name?')
@click.option('--apps', '-a', prompt="what are the app starting apps?",
@click.option('--device_group', '-d', help='nebula device_group to create', prompt='what is the device_group name?')
@click.option('--apps', '-a', prompt="what are the device_group apps?",
help='a CSV list of the apps that are part of the device_group')
def device_group_create(device_group, apps):
apps_list = apps.split(",")
Expand All @@ -454,10 +453,9 @@ def device_group_create(device_group, apps):
connection.create_device_group(device_group, config_json)


# create requires all the params so prompting for everything that missing with sensible\empty defaults where possible
@device_groups.command(help="create a new nebula device_group", name="update")
@click.option('--device_group', '-d', help='nebula device_group to delete', prompt='what is the device_group name?')
@click.option('--apps', '-a', prompt="what are the app starting apps?",
@device_groups.command(help="update a new nebula device_group", name="update")
@click.option('--device_group', '-d', help='nebula device_group to update', prompt='what is the device_group name?')
@click.option('--apps', '-a', prompt="what are the device_group apps?",
help='a CSV list of the apps that are part of the device_group')
def device_group_update(device_group, apps):
apps_list = apps.split(",")
Expand Down

0 comments on commit 2be1383

Please sign in to comment.