From dc3bc4bbfda933d3c5d6687011550dc3d1fdb305 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 3 Jan 2017 16:31:40 +0100 Subject: Convert to use the existing guacamole instead of my own gadona --- scripts/lesana | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'scripts') 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() -- cgit v1.2.3