dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

CLI ergonomics

Open imikushin opened this issue 7 years ago • 2 comments

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:

  1. create a base-image,
  2. then create an image using the base-image,
  3. 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

imikushin avatar May 08 '18 01:05 imikushin

This needs attention

berndtj avatar Jul 02 '18 22:07 berndtj

This has been fixed for functions. Do other objects need a CLI facelift?

imikushin avatar Jul 11 '18 22:07 imikushin