update commands

- change list to models
- remove generate from cli in favour of run
This commit is contained in:
Bruce MacDonald 2023-06-30 11:42:35 -04:00
parent e0ccc0c1b7
commit 36168300d9

View file

@ -17,14 +17,9 @@ def main():
server.set_parser(subparsers.add_parser("serve")) server.set_parser(subparsers.add_parser("serve"))
list_parser = subparsers.add_parser("list") list_parser = subparsers.add_parser("models")
list_parser.set_defaults(fn=list_models) list_parser.set_defaults(fn=list_models)
generate_parser = subparsers.add_parser("generate")
generate_parser.add_argument("model")
generate_parser.add_argument("prompt", nargs="?")
generate_parser.set_defaults(fn=generate)
pull_parser = subparsers.add_parser("pull") pull_parser = subparsers.add_parser("pull")
pull_parser.add_argument("model") pull_parser.add_argument("model")
pull_parser.set_defaults(fn=pull) pull_parser.set_defaults(fn=pull)