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

Function commandInputSchemaFlags

cmd/help_input_schema.go:86–96  ·  view source on GitHub ↗
(cmd *cobra.Command, flags []jsonCommandFlag)

Source from the content-addressed store, hash-verified

84}
85
86func commandInputSchemaFlags(cmd *cobra.Command, flags []jsonCommandFlag) []jsonCommandFlag {
87 filtered := make([]jsonCommandFlag, 0, len(flags))
88 excludeAsMember := commandInputSchemaExcludesAsMember(cmd)
89 for _, flag := range flags {
90 if excludeAsMember && flag.Name == "as-member" {
91 continue
92 }
93 filtered = append(filtered, flag)
94 }
95 return filtered
96}
97
98func commandInputSchemaExcludesAsMember(cmd *cobra.Command) bool {
99 if cmd == nil {

Callers 1

jsonCommandManifestForFunction · 0.85

Calls 1

Tested by

no test coverage detected