def set_command(value, parameter):
    """
    Executor for `globus config set`
    """
    conf = get_config_obj()

    section = "cli"
    if "." in parameter:
        section, parameter = parameter.split(".", 1)

    # ensure that the section exists
    if section not in conf:
        conf[section] = {}
    # set the value for the given parameter
    conf[section][parameter] = value

    # write to disk
    safeprint("Writing updated config to {}".format(conf.filename))
    conf.write()
def set_command ( value , parameter ) : conf = get_config_obj ( ) section = "cli" if "." in parameter : section , parameter = parameter . split ( "." , 1 ) if section not in conf : conf [ section ] = { } conf [ section ] [ parameter ] = value safeprint ( "Writing updated config to {}" . format ( conf . filename ) ) conf . write ( )
Executor for `globus config set`