blob: 37aad0d2de23843c368571220c18238dd92d4b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
"""
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...')
|