aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-09-13 14:28:38 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-09-13 14:28:38 +0200
commit4c291a3710486eab6edd97b5e0619241f5909173 (patch)
tree563c389cc90f28c17070f558033190090e36816c /scripts
parent935047878ba6ad473d2d32b8163e124bc7b2e5c2 (diff)
New command to export data from a lesana collection to another one.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lesana17
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):