MCPcopy Create free account
hub / github.com/dropbox/dbxcli / commandArg

Function commandArg

cmd/help_manifest.go:373–383  ·  view source on GitHub ↗
(name string, required bool, variadic bool, valueKind string, description string)

Source from the content-addressed store, hash-verified

371}
372
373func commandArg(name string, required bool, variadic bool, valueKind string, description string) jsonCommandArg {
374 return jsonCommandArg{
375 Name: name,
376 Required: required,
377 Variadic: variadic,
378 Placement: "positional",
379 ValueKind: valueKind,
380 Description: description,
381 EnumValues: []string{},
382 }
383}
384
385func enumCommandArg(name string, required bool, variadic bool, valueKind string, description string, enumValues ...string) jsonCommandArg {
386 arg := commandArg(name, required, variadic, valueKind, description)

Callers 3

help_manifest.goFile · 0.85
enumCommandArgFunction · 0.85
streamCommandArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected