sceptre/cli.py
def cli(
        ctx, debug, directory, no_colour, output, var, var_file
):  # pragma: no cover
    """
    Implements sceptre's CLI.
    """
    setup_logging(debug, no_colour)
    colorama.init()
    ctx.obj = {
        "options": {},
        "output_format": output,
        "sceptre_dir": directory if directory else os.getcwd()
    }
    user_variables = {}
    if var_file:
        user_variables.update(yaml.safe_load(var_file.read()))
    if var:
        # --var options overwrite --var-file options
        for variable in var:
            variable_key, variable_value = variable.split("=")
            user_variables.update({variable_key: variable_value})
    if user_variables:
        ctx.obj["options"]["user_variables"] = user_variables

    Implements sceptre's CLI.
    
Implements sceptre's CLI.
Implements sceptre ' s CLI .
def cli(
        ctx, debug, directory, no_colour, output, var, var_file
):  
    setup_logging(debug, no_colour)
    colorama.init()
    ctx.obj = {
        "options": {},
        "output_format": output,
        "sceptre_dir": directory if directory else os.getcwd()
    }
    user_variables = {}
    if var_file:
        user_variables.update(yaml.safe_load(var_file.read()))
    if var:
        for variable in var:
            variable_key, variable_value = variable.split("=")
            user_variables.update({variable_key: variable_value})
    if user_variables:
        ctx.obj["options"]["user_variables"] = user_variables
def cli ( ctx , debug , directory , no_colour , output , var , var_file ) : setup_logging ( debug , no_colour ) colorama . init ( ) ctx . obj = { "options" : { } , "output_format" : output , "sceptre_dir" : directory if directory else os . getcwd ( ) } user_variables = { } if var_file : user_variables . update ( yaml . safe_load ( var_file . read ( ) ) ) if var : for variable in var : variable_key , variable_value = variable . split ( "=" ) user_variables . update ( { variable_key : variable_value } ) if user_variables : ctx . obj [ "options" ] [ "user_variables" ] = user_variables
Implements sceptre's CLI.
Implements sceptre ' s CLI .
# pragma: no cover """
    Implements sceptre's CLI.
    """ # --var options overwrite --var-file options
ctx
debug
directory
no_colour
output
var
var_file