graviteeio_cli/commands/profiles.py
def ls(obj, output):
    """
    This command display profile(s) available
    """
    gio_config: GraviteeioConfig = obj['config']

    profiles = gio_config.profiles()
    new_profiles = []
    for profile in profiles:
        if profile == gio_config.profile:
            new_profiles.append("{} (active)".format(profile))
        else:
            new_profiles.append(profile)

    OutputFormatType.value_of(output).echo(new_profiles, header=["Profiles"])

    This command display profile(s) available
    
This command display profile(s) available
This command display profile ( s ) available
def ls(obj, output):
    gio_config: GraviteeioConfig = obj['config']
    profiles = gio_config.profiles()
    new_profiles = []
    for profile in profiles:
        if profile == gio_config.profile:
            new_profiles.append("{} (active)".format(profile))
        else:
            new_profiles.append(profile)
    OutputFormatType.value_of(output).echo(new_profiles, header=["Profiles"])
def ls ( obj , output ) : gio_config : GraviteeioConfig = obj [ 'config' ] profiles = gio_config . profiles ( ) new_profiles = [ ] for profile in profiles : if profile == gio_config . profile : new_profiles . append ( "{} (active)" . format ( profile ) ) else : new_profiles . append ( profile ) OutputFormatType . value_of ( output ) . echo ( new_profiles , header = [ "Profiles" ] )
This command display profile(s) available
This command display profile ( s ) available
"""
    This command display profile(s) available
    """
obj
output