diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-08-04 18:08:52 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-08-04 18:08:52 +0200 |
commit | b099f593d5227453b999271ec2f00d8e81ab5b86 (patch) | |
tree | 7e20c335bd6ff89c2bb15122b5abef2cb6351f5e /scripts | |
parent | 1fe460ea2d1339358ea9cd4c909151ed7eccdcfc (diff) |
Use hazwaz to generate command line commands
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lesana | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/scripts/lesana b/scripts/lesana index ed6084a..5c84d56 100755 --- a/scripts/lesana +++ b/scripts/lesana @@ -4,25 +4,27 @@ Lesana Command Line interface """ import logging +import hazwaz + import lesana.command -class Lesana(lesana.command.MainCommand): +class Lesana(hazwaz.MainCommand): """ Manage collections """ commands = ( - ("new", lesana.command.New()), - ("edit", lesana.command.Edit()), - ("show", lesana.command.Show()), - ("index", lesana.command.Index()), - ("search", lesana.command.Search()), - ("get-values", lesana.command.GetValues()), - ("update", lesana.command.Update()), - ("export", lesana.command.Export()), - ("init", lesana.command.Init()), - ("rm", lesana.command.Remove()), + lesana.command.New(), + lesana.command.Edit(), + lesana.command.Show(), + lesana.command.Index(), + lesana.command.Search(), + lesana.command.GetValues(), + lesana.command.Update(), + lesana.command.Export(), + lesana.command.Init(), + lesana.command.Remove(), ) @@ -36,4 +38,4 @@ if __name__ == "__main__": logger.addHandler(ch) logger.setLevel(logging.INFO) - Lesana().main() + Lesana().run() |