sera/commands/export.py
def export(ctx, expression):
    """export VARIABLE=VALUE to env"""
    if ctx.obj['local']:
        variable, value = expression.split('=')
        set_env_key(ctx.obj['env_path'], variable, value)
        cp = RemoteCommand(
            returncode=0,
            subcommand=end,
            params={'message': 'exported %s; exiting...' % variable})
        return cp
    else:
        remote('export', ctx)
export VARIABLE=VALUE to env
export VARIABLE=VALUE to env
export VARIABLE = VALUE to env
def export(ctx, expression):
    if ctx.obj['local']:
        variable, value = expression.split('=')
        set_env_key(ctx.obj['env_path'], variable, value)
        cp = RemoteCommand(
            returncode=0,
            subcommand=end,
            params={'message': 'exported %s; exiting...' % variable})
        return cp
    else:
        remote('export', ctx)
def export ( ctx , expression ) : if ctx . obj [ 'local' ] : variable , value = expression . split ( '=' ) set_env_key ( ctx . obj [ 'env_path' ] , variable , value ) cp = RemoteCommand ( returncode = 0 , subcommand = end , params = { 'message' : 'exported %s; exiting...' % variable } ) return cp else : remote ( 'export' , ctx )
export VARIABLE=VALUE to env
export VARIABLE = VALUE to env
"""export VARIABLE=VALUE to env"""
ctx
expression