You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dagger call --help there’s three groups of flags:
Module constructor arguments
call specific flags
Global flags
Example:
ARGUMENTS
--source Directory [required]
--host-docker-config Secret
--version string
OPTIONS
--json Present result as JSON
-m, --mod string Path to dagger.json config file for the module or a directory containing that file.
Either local path (e.g. "/path/to/some/dir") or a github repo (e.g.
"github.com/dagger/dagger/path/to/some/subdir")
-o, --output string Path in the host to save the result to
INHERITED OPTIONS
-d, --debug show debug logs and full verbosity
--progress string progress output format (auto, plain, tty) (default "auto")
-s, --silent disable terminal UI and progress output
-v, --verbose count increase verbosity (use -vv or -vvv for more)
But in any function command, we don’t need to show all the inherited flags again. Some of those are global and have already been parsed already:
ARGUMENTS
--directory Directory Identifier of the directory to copy. [required]
--path string Location of the written directory (e.g., "/src/"). [required]
--exclude strings Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
--include strings Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
INHERITED OPTIONS
-d, --debug show debug logs and full verbosity
--json Present result as JSON
-m, --mod string Path to dagger.json config file for the module or a directory containing that
file. Either local path (e.g. "/path/to/some/dir") or a github repo (e.g.
"github.com/dagger/dagger/path/to/some/subdir")
-o, --output string Path in the host to save the result to
--progress string progress output format (auto, plain, tty) (default "auto")
-s, --silent disable terminal UI and progress output
-v, --verbose count increase verbosity (use -vv or -vvv for more)
We should only show the function arguments, but a VisitAll on the cmd.PersistentFlags() to hide those flags doesn’t work. On a preliminary debug session, they don’t seem to be coming from the persistent flagset:
samalba
removed
kind/dx
Issue affects the Dagger developer experience: cue syntax, APIs, etc
area/cli
All about go code on dagger CLI
labels
May 31, 2024
Follow-up to:
--help
#6549dagger call --help
#6943In
dagger call --help
there’s three groups of flags:call
specific flagsExample:
But in any function command, we don’t need to show all the inherited flags again. Some of those are global and have already been parsed already:
We should only show the function arguments, but a
VisitAll
on thecmd.PersistentFlags()
to hide those flags doesn’t work. On a preliminary debug session, they don’t seem to be coming from the persistent flagset:The text was updated successfully, but these errors were encountered: