Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rapyuta-robotics/rapyuta-io-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1a8c9c4c35e0c5ad8cb928e9852b5bd4e2db410b
Choose a base ref
..
head repository: rapyuta-robotics/rapyuta-io-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a1d347d3b382d925794f06c3bd9d59f4527385ce
Choose a head ref
Showing with 12 additions and 2 deletions.
  1. +6 −1 riocli/organization/inspect.py
  2. +2 −1 riocli/project/create.py
  3. +1 −0 riocli/project/list.py
  4. +3 −0 riocli/project/util.py
7 changes: 6 additions & 1 deletion riocli/organization/inspect.py
Original file line number Diff line number Diff line change
@@ -32,7 +32,12 @@
type=click.Choice(['json', 'yaml'], case_sensitive=False))
@click.argument('organization-name', type=str)
@name_to_organization_guid
def inspect_organization(format_type: str, organization_name: str, organization_guid: str) -> None:
def inspect_organization(
format_type: str,
organization_name: str,
organization_guid: str,
organization_short_id: str,
) -> None:
"""
Inspect an organization
"""
3 changes: 2 additions & 1 deletion riocli/project/create.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
from click_help_colors import HelpColorsCommand

from riocli.config import new_v2_client
from riocli.constants import Symbols, Colors
from riocli.constants import Colors, Symbols
from riocli.project.util import name_to_organization_guid
from riocli.utils.spinner import with_spinner

@@ -37,6 +37,7 @@ def create_project(
project_name: str,
organization_guid: str,
organization_name: str,
organization_short_id: str,
spinner=None,
) -> None:
"""
1 change: 1 addition & 0 deletions riocli/project/list.py
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ def list_projects(
ctx: click.Context = None,
organization_guid: str = None,
organization_name: str = None,
organization_short_id: str = None,
wide: bool = False,
) -> None:
"""
3 changes: 3 additions & 0 deletions riocli/project/util.py
Original file line number Diff line number Diff line change
@@ -103,6 +103,7 @@ def decorated(*args: typing.Any, **kwargs: typing.Any):
client = new_client(with_project=False)
name = kwargs.get('organization_name')
guid = None
short_id = None

if name:
try:
@@ -114,9 +115,11 @@ def decorated(*args: typing.Any, **kwargs: typing.Any):
except Exception as e:
click.secho(str(e), fg=Colors.RED)
raise SystemExit(1)

kwargs['organization_name'] = name
kwargs['organization_guid'] = guid
kwargs['organization_short_id'] = short_id

f(*args, **kwargs)

return decorated