refactor: client install CLI DX#10454
Conversation
@shykes mentionned that the current `dagger client install` CLI doesn't completely follows the spec described in dagger#9582. This PR aims to fix that difference: Before: `dagger client install --generator=<generator> <output-path>` Now: `dagger client install <generator> <output-path>` Signed-off-by: Tom Chauveau <tom@dagger.io>
|
👀 I actually prefer the current DX - it stylistically matches the That said, if this is the route we go down, the implementation LGTM. cc @shykes |
|
The reason for the syntax I proposed, is to make the path optional. Most users (me included) don't know intuitively what path to provide. So each generator should pick its own default. I suspect this is not currently supported in the backend. So it's not just a matter of UI bikeshedding: the spec encapsulated a desired backend behavior. |
So I want to be able to run: And have the go generator figure out where to install it (by default) |
|
(btw this kind of detail is why I insisted that we discuss the spec in the issue, before rushing an implementation) |
The path is already optional, the client will be generated in
Happy to chat about it whenever you can |
|
we discussed this live with Tom fyi |
|
Sure, but having Just thinking about ways to reduce friction for users who are already using |
Yeah both solutions works, if |
|
Don't want to block on having |
|
Yeah you're right that the 2 topics are orthogonal @jedevc .
|
@shykes mentionned that the current `dagger client install` CLI doesn't completely follows the spec described in dagger#9582. This PR aims to fix that difference: Before: `dagger client install --generator=<generator> <output-path>` Now: `dagger client install <generator> <output-path>` Signed-off-by: Tom Chauveau <tom@dagger.io>
…o longer used after the refactor on dagger#10454 Signed-off-by: Ben Ackerman <Ben@tacmail.net>
… is no longer used after the refactor on PR dagger#10454 Signed-off-by: Ben Ackerman <Ben@tacmail.net>
@shykes mentioned that the current
dagger client installCLI doesn't completely follows the spec described in #9582.This PR aims to fix that difference:
Before:
dagger client install --generator=<generator> <output-path>Now:
dagger client install <generator> <output-path>