Repository navigation
Conversation
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
helderco
force-pushed
the
helder/oss-22-cli-improve-display-of-core-api-in-help-and-dagger-functions
branch
from
February 1, 2024 12:00
2e79d6d to
a8ae912
Compare
jedevc
approved these changes
Feb 1, 2024
gerhard
approved these changes
Feb 1, 2024
gerhard
left a comment
Contributor
There was a problem hiding this comment.
I can see that there are a bunch of open items left.
Are we OK to merge this and do a follow-up?
Contributor
Author
|
Yes, ok to merge. As I say in the description there’ll be a more generic follow up, not focused on core types in dagger call. |
helderco
deleted the
helder/oss-22-cli-improve-display-of-core-api-in-help-and-dagger-functions
branch
February 1, 2024 16:08
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6358
Putting individual improvements in separate commits.
Notice in the example below that if we follow #6516 and keep the first line of API descriptions up to 50 chars, that'll be short of the end of the line below "EXPERIMENTAL". Meaning that it won't wrap on this screen size.
Todo
Not all of these are focused on the core API, most impactful is the wrapping on flags and commands. I’m submitting what I have now to be cut in next release but will continue in a separate PR for general
--helpimprovements.daggerroot (modules, execution, cloud, additional)dagger call<command>syntax instead ofCOMMANDincmd.Use--silent,--focus)-m)dagger callto keep--helplean while still providing more documentationExample
Taking an example of a function returning a
dagger.Containerwhich has a lot of functions.