diff options
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() |