graviteeio_cli/commands/profiles.py
def load(ctx, profile_name):
    """
    This command switches of profile. The configuration of the profile is loaded for the execution of command.
    """
    gio_config: GraviteeioConfig = ctx.obj['config']
    old_profile = gio_config.profile

    if gio_config.config_module[GioModule.APIM] and gio_config.config_module[GioModule.APIM].is_logged_in():
        ctx.obj['auth_client'] = APIM_Client.AUTH.http(ctx.obj['config'])
        ctx.obj['module'] = GioModule.APIM
        ctx.invoke(logout)

    gio_config.load(profile_name)
    click.echo("Switch profile from [{}] to [{}].".format(old_profile, profile_name))

    This command switches of profile. The configuration of the profile is loaded for the execution of command.
    
This command switches of profile. The configuration of the profile is loaded for the execution of command.
This command switches of profile . The configuration of the profile is loaded for the execution of command .
def load(ctx, profile_name):
    gio_config: GraviteeioConfig = ctx.obj['config']
    old_profile = gio_config.profile
    if gio_config.config_module[GioModule.APIM] and gio_config.config_module[GioModule.APIM].is_logged_in():
        ctx.obj['auth_client'] = APIM_Client.AUTH.http(ctx.obj['config'])
        ctx.obj['module'] = GioModule.APIM
        ctx.invoke(logout)
    gio_config.load(profile_name)
    click.echo("Switch profile from [{}] to [{}].".format(old_profile, profile_name))
def load ( ctx , profile_name ) : gio_config : GraviteeioConfig = ctx . obj [ 'config' ] old_profile = gio_config . profile if gio_config . config_module [ GioModule . APIM ] and gio_config . config_module [ GioModule . APIM ] . is_logged_in ( ) : ctx . obj [ 'auth_client' ] = APIM_Client . AUTH . http ( ctx . obj [ 'config' ] ) ctx . obj [ 'module' ] = GioModule . APIM ctx . invoke ( logout ) gio_config . load ( profile_name ) click . echo ( "Switch profile from [{}] to [{}]." . format ( old_profile , profile_name ) )
This command switches of profile.
This command switches of profile .
"""
    This command switches of profile. The configuration of the profile is loaded for the execution of command.
    """
ctx
profile_name