Skip to content

CLI: improve display of core API in --help output #6358

Closed

Description

@sipsma

#6293 exposed the core API in dagger call, which results in --help and dagger functions output to be pretty overwhelming and messy when dealing with core types like Container.

There's most likely going to be a lot of little things needed to address this, possibly including but not limited to:

  1. displaying multi-line doc strings better
  2. sorting of functions more cleanly

I think we should start out trying to do this purely from the CLI without engine-side changes. But if that ends up not being feasible then we can consider whether typedefs could get optional support for annotating CLI specific presentation metadata. Preferable to avoid going down that road if possible though.

Activity

  1. added
    area/cli
    on Jan 3, 2024
  2. helderco commented on Jan 3, 2024

    @helderco
    Contributor

    Maybe:

    • sort functions alphabetically to make them easier to find
    • print only the first line of a function description in sub-commands list
    • print the whole thing when showing --help for function/sub-command specifically
    • ensure API descriptions have a good/proper first summary line, with blank line and more detailed description next
  3. self-assigned this
    on Jan 16, 2024
  4. helderco commented on Jan 29, 2024

    @helderco
    Contributor

    Started working on this and there's more changes to the above list. I'll list them in the PR and we can go from there.

  5. helderco commented on Feb 1, 2024

    @helderco
    Contributor

    dagger functions was cleaned in:

  6. changed the title [-]CLI: improve display of core API in `--help` and `dagger functions` output[/-] [+]CLI: improve display of core API in `--help` output[/+] on Feb 1, 2024
  7. removed
    area/cli
    on May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions