MCPcopy Index your code
hub / github.com/dagger/dagger / defaultHelp

Method defaultHelp

cmd/dagger/shell_commands.go:73–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (c *ShellCommand) defaultHelp() string {
74 var doc ShellDoc
75
76 if c.Description != "" {
77 doc.Add("", c.Description)
78 }
79
80 doc.Add("Usage", c.Use)
81
82 return doc.String()
83}
84
85type PositionalArgs func(args []string) error
86

Callers 1

HelpMethod · 0.95

Calls 2

AddMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected