graviteeio_cli/commands/profiles.py
def create(obj, profile, module, url, environment, organization):
    """This command create a new profile configuration according to module."""

    gio_config: GraviteeioConfig = obj['config']

    data = {
        "address_url": url
    }

    if environment:
        data["env"] = environment
    if organization:
        data["org"] = organization

    gio_config.save(profile=profile, module=module, **data)

    click.echo("Data saved for profile [{}].".format(profile))
This command create a new profile configuration according to module.
This command create a new profile configuration according to module.
This command create a new profile configuration according to module .
def create(obj, profile, module, url, environment, organization):
    gio_config: GraviteeioConfig = obj['config']
    data = {
        "address_url": url
    }
    if environment:
        data["env"] = environment
    if organization:
        data["org"] = organization
    gio_config.save(profile=profile, module=module, **data)
    click.echo("Data saved for profile [{}].".format(profile))
def create ( obj , profile , module , url , environment , organization ) : gio_config : GraviteeioConfig = obj [ 'config' ] data = { "address_url" : url } if environment : data [ "env" ] = environment if organization : data [ "org" ] = organization gio_config . save ( profile = profile , module = module , ** data ) click . echo ( "Data saved for profile [{}]." . format ( profile ) )
This command create a new profile configuration according to module.
This command create a new profile configuration according to module .
"""This command create a new profile configuration according to module."""
obj
profile
module
url
environment
organization