|
@ -268,6 +268,9 @@ def cli(ctx, debug, config, stdin, remove_prefix, add_prefix): |
|
|
@cli.command(name="config") |
|
|
@cli.command(name="config") |
|
|
@click.pass_context |
|
|
@click.pass_context |
|
|
def print_config(ctx): |
|
|
def print_config(ctx): |
|
|
|
|
|
""" |
|
|
|
|
|
Print the configuration |
|
|
|
|
|
""" |
|
|
print(json.dumps(ctx.obj['CONFIG'], indent=2, sort_keys=True)) |
|
|
print(json.dumps(ctx.obj['CONFIG'], indent=2, sort_keys=True)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -283,6 +286,9 @@ def print_config(ctx): |
|
|
@click.option('--print-identity/--no-print-identity', default=False) |
|
|
@click.option('--print-identity/--no-print-identity', default=False) |
|
|
@click.pass_context |
|
|
@click.pass_context |
|
|
def list_files(ctx, context, sha256sum, suffix, print_identity): |
|
|
def list_files(ctx, context, sha256sum, suffix, print_identity): |
|
|
|
|
|
""" |
|
|
|
|
|
List all file object in a bucket |
|
|
|
|
|
""" |
|
|
ctx.obj['CONTEXT'] = context |
|
|
ctx.obj['CONTEXT'] = context |
|
|
s3_config = ctx.obj['CONFIG']['s3'] |
|
|
s3_config = ctx.obj['CONFIG']['s3'] |
|
|
s3_bucket = ctx.obj['CONTEXT'] |
|
|
s3_bucket = ctx.obj['CONTEXT'] |
|
@ -604,6 +610,9 @@ def clean_files(ctx, context, context_data, files): |
|
|
@click.argument('files', nargs=-1) |
|
|
@click.argument('files', nargs=-1) |
|
|
@click.pass_context |
|
|
@click.pass_context |
|
|
def compress_assets(ctx, profile, content, destination, print_input_and_identity, files): |
|
|
def compress_assets(ctx, profile, content, destination, print_input_and_identity, files): |
|
|
|
|
|
""" |
|
|
|
|
|
Compress the request files and store them in a storage bucket. |
|
|
|
|
|
""" |
|
|
profiles = ctx.obj['CONFIG']['profiles'] |
|
|
profiles = ctx.obj['CONFIG']['profiles'] |
|
|
|
|
|
|
|
|
if profile not in profiles: |
|
|
if profile not in profiles: |
|
|