dispatch
dispatch copied to clipboard
CLI ergonomics
Bug Report
When running the Dispatch CLI commands (like dispatch create function or dispatch delete image), the name of the object must be the first (positional) argument.
Other arguments may be positional only if their role is obvious to the user.
Expected behavior
When creating a function with the CLI, the command would expectedly go as:
dispatch create function hello-clj ./hello.clj --image=clj-nodeps
Current behavior
Currently, dispatch function create has 3 positional arguments, so the above command actually looks like this:
dispatch create function clj-nodeps hello-clj ./hello.clj
Steps to reproduce
With dispatch CLI:
- create a base-image,
- then create an image using the base-image,
- then create a function using that image.
Impact
- [ ] Low - Annoyance, but does not impact business or functionality
- [x] Medium - Issue can be worked around, but is causing pain
- [ ] High - Blocker
Your Environment
- Dispatch CLI version (or git commit): 3c775045db38a00056c8305dd983ed0acd0d8f4c
This needs attention
This has been fixed for functions. Do other objects need a CLI facelift?