Add initial cli test
This commit is contained in:
parent
97035d8e4c
commit
2d2b4430ff
5 changed files with 12 additions and 6 deletions
|
|
@ -9,9 +9,6 @@ import click
|
|||
from . import __version__
|
||||
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def migrate(data: NomieImport):
|
||||
db = schema.migrate("output.db")
|
||||
if not db:
|
||||
|
|
@ -32,8 +29,6 @@ def migrate(data: NomieImport):
|
|||
@click.version_option(version=__version__)
|
||||
@click.argument("inputfile")
|
||||
def main(inputfile):
|
||||
# TODO test and error gracefully for no input given
|
||||
# file = sys.argv[1]
|
||||
data = nomie.get_data(inputfile)
|
||||
migrate(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue