diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-13 14:28:38 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-13 14:28:38 +0200 |
commit | 4c291a3710486eab6edd97b5e0619241f5909173 (patch) | |
tree | 563c389cc90f28c17070f558033190090e36816c /scripts | |
parent | 935047878ba6ad473d2d32b8163e124bc7b2e5c2 (diff) |
New command to export data from a lesana collection to another one.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lesana | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/lesana b/scripts/lesana index b8b9929..408aa2c 100755 --- a/scripts/lesana +++ b/scripts/lesana @@ -2,7 +2,7 @@ import argparse -from lesana.command import New, Edit, Show, Index, Search, Init, Remove +import lesana.command class Lesana(): """ @@ -10,13 +10,14 @@ class Lesana(): """ commands = ( - ('new', New()), - ('edit', Edit()), - ('show', Show()), - ('index', Index()), - ('search', Search()), - ('init', Init()), - ('rm', Remove()), + ('new', lesana.command.New()), + ('edit', lesana.command.Edit()), + ('show', lesana.command.Show()), + ('index', lesana.command.Index()), + ('search', lesana.command.Search()), + ('export', lesana.command.Export()), + ('init', lesana.command.Init()), + ('rm', lesana.command.Remove()), ) def _main(self): |