Browse Source

Add command explanations

add-file-preservation
Drew Short 5 years ago
parent
commit
b0bb059157
  1. 9
      acm.py

9
acm.py

@ -268,6 +268,9 @@ def cli(ctx, debug, config, stdin, remove_prefix, add_prefix):
@cli.command(name="config")
@click.pass_context
def print_config(ctx):
"""
Print the configuration
"""
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.pass_context
def list_files(ctx, context, sha256sum, suffix, print_identity):
"""
List all file object in a bucket
"""
ctx.obj['CONTEXT'] = context
s3_config = ctx.obj['CONFIG']['s3']
s3_bucket = ctx.obj['CONTEXT']
@ -604,6 +610,9 @@ def clean_files(ctx, context, context_data, files):
@click.argument('files', nargs=-1)
@click.pass_context
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']
if profile not in profiles:

Loading…
Cancel
Save