diff options
Diffstat (limited to 'check/commands/imagehash/add.py')
| -rw-r--r-- | check/commands/imagehash/add.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/check/commands/imagehash/add.py b/check/commands/imagehash/add.py index 7c5dc31..37aad0d 100644 --- a/check/commands/imagehash/add.py +++ b/check/commands/imagehash/add.py @@ -1 +1,20 @@ -# add a file to the database
\ No newline at end of file +""" +Add a file to the database +""" + +import click + +# from app.models.sql_factory import load_sql_datasets + +@click.command() +@click.option('-i', '--input', 'opt_fn', + required=True, + help="File to add (gif/jpg/png)") +@click.option('-u', '--upload', 'opt_upload', is_flag=True, + help='Whether to upload this file to S3') +@click.pass_context +def cli(ctx, opt_fn, opt_upload): + """ + Add a single file + """ + print('Adding a file...') |
