aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-01-03 16:31:40 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-01-03 16:31:40 +0100
commitdc3bc4bbfda933d3c5d6687011550dc3d1fdb305 (patch)
tree1a330cccefc385b5070c01c9f6b2acff7e7eb347 /scripts
parente45baf278cb3e52e1cbd0281228a5f0727d25635 (diff)
Convert to use the existing guacamole instead of my own gadona
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lesana26
1 files changed, 15 insertions, 11 deletions
diff --git a/scripts/lesana b/scripts/lesana
index a500bb8..da9b833 100755
--- a/scripts/lesana
+++ b/scripts/lesana
@@ -1,16 +1,20 @@
#!/usr/bin/env python3
-import gadona
+import guacamole
from lesana.command import New, Edit, Index, Search, Init
+class Lesana(guacamole.Command):
+ """
+ Manage collections
+ """
+
+ sub_commands = (
+ ('new', New),
+ ('edit', Edit),
+ ('index', Index),
+ ('search', Search),
+ ('init', Init),
+ )
+
if __name__ == '__main__':
- app = gadona.App()
- app.description = "Manage collections"
- app.commands = [
- New(),
- Edit(),
- Index(),
- Search(),
- Init(),
- ]
- app.main()
+ Lesana().main()