Skip to content

Commit

Permalink
fix: removes create option for specific resources.
Browse files Browse the repository at this point in the history
This commit removes `create` option for build, device, network, package and secret resources  to reduce ambiguity with the `apply` way of creating those resources.
  • Loading branch information
RomilShah authored and pallabpain committed May 31, 2023
1 parent 7ec3fb1 commit 0d1dd8f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion riocli/build/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from riocli.config import new_client


@click.command('create')
@click.command('create', hidden=True)
@click.option('--strategy', type=click.Choice(['Source', 'Docker']), default='Docker',
help='Strategy for building the Source')
@click.option('--branch', default='', help='Git Repository branch')
Expand Down
2 changes: 1 addition & 1 deletion riocli/device/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from riocli.config import new_client


@click.command('create')
@click.command('create', hidden=True)
@click.option('--description', type=str, help='Description of the device', default='')
@click.option('--runtime', help='Runtime of the Device', multiple=True,
type=click.Choice(['preinstalled', 'dockercompose'], case_sensitive=False))
Expand Down
2 changes: 1 addition & 1 deletion riocli/network/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from riocli.network.routed_network import create_routed_network


@click.command('create')
@click.command('create', hidden=True)
@click.argument('name', type=str)
@click.option('--network', help='Type of Network',
type=click.Choice(['routed', 'native']), default='routed')
Expand Down
2 changes: 1 addition & 1 deletion riocli/package/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from riocli.config import new_client


@click.command('create')
@click.command('create', hidden=True)
@click.option('--manifest', type=click.File(mode='r', lazy=True),
help='Path for the manifest file')
@click.option('--format', 'format_type', default='json',
Expand Down
2 changes: 1 addition & 1 deletion riocli/secret/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from riocli.secret.source_secret import create_source_secret


@click.command('create')
@click.command('create', hidden=True)
@click.option('--secret-type', '-t', help='Type of Secret', type=click.Choice(['docker', 'source']))
@click.option('--username', type=str,
help='Docker registry username for docker secret, Git username for source secret')
Expand Down

0 comments on commit 0d1dd8f

Please sign in to comment.