diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-03 16:31:40 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-03 16:31:40 +0100 |
commit | dc3bc4bbfda933d3c5d6687011550dc3d1fdb305 (patch) | |
tree | 1a330cccefc385b5070c01c9f6b2acff7e7eb347 /scripts | |
parent | e45baf278cb3e52e1cbd0281228a5f0727d25635 (diff) |
Convert to use the existing guacamole instead of my own gadona
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lesana | 26 |
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() |