Repository navigation
Improve "dagger functions" - #6317
Conversation
1a17947 to
7dd2b50
Compare
|
Tested on my own daggerverse project, works like a charm. However, I noticed that I need to give the exact sub field and not the command field. However, if I want to call my pipeline, I actually need to provide |
|
Gonna push some integ test coverage for |
7dd2b50 to
696e27e
Compare
|
Hello! I'm back from break. Anything I should do to get this merged? |
I agree @TomChv, but this problem is already present in the current version |
|
I am trying to rebase this, but getting merge conflicts from #6254 . Trying my best to resolve them... EDIT: fixed :) |
696e27e to
3252438
Compare
Signed-off-by: Solomon Hykes <[email protected]>
3252438 to
a69e71f
Compare
helderco
left a comment
There was a problem hiding this comment.
It's definitely an improvement 👍 but I'm questioning the purpose of dagger functions now.
The initial intent was to:
- give an overview of all functions provided by a module;
- add a column to show which verbs are available for each function;
The second one is no longer needed as we're converging back into a single command.
The first one however, I meant to group the functions by object instead of repeating the value in the same column. That would still give an overview without having to hunt via chaining in dagger call xxx --help.
So with chaining here as well, apart from having no hint for the user that it works like this, and after --help gets cleaned up, dagger functions just becomes a piece of --help (just the subcommands section).
I think we should either return it to a single call with an overview (grouped by objects) or remove it in favor of --help, or just dagger call with no args which defaults to --help.
|
@helderco personally this version of Nothing world-changing, but a good basic command I expect to be there. |
|
Note, I think we should consider a |
|
@shykes while you were on vacation I had rebased this on main and added an integration test as a separate commit, but I think it got wiped out with a force push. I'll repush the integ test. Just FYI so we don't overwrite it again 😄 |
Sorry about that. I didn’t even think to pull 3d party changes on my PR, just picked up where I left off. |
Signed-off-by: Erik Sipsma <[email protected]>
No worries at all, it was an exceptional case while trying to move it forward during holidays so very understandable and everything was in my git history so no harm done 🙂 Pushed that along with fixes needed for the tests to pass (mainly that interface return values were erroring out). |
* Improve "dagger functions" Signed-off-by: Solomon Hykes <[email protected]> * add integ test coverage and associated fixes to handle interfaces Signed-off-by: Erik Sipsma <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]> Signed-off-by: Erik Sipsma <[email protected]> Co-authored-by: Erik Sipsma <[email protected]>
Before
dagger functionsdumps all functions available in all types for a given module, regardless of arguments. So I can't see what functions are available at a given stage of the pipeline.Example:
After
dagger functions [PIPELINE]shows only available functions at the given stage of a pipeline of functions. I can use the arguments to see what functions are available at a given stage of the pipeline.For example: