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

Function jsonErrorExampleCommand

cmd/json_contract_test.go:883–896  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

881}
882
883func jsonErrorExampleCommand(path string) *cobra.Command {
884 root := &cobra.Command{Use: "dbxcli"}
885 if path == "" || path == "dbxcli" {
886 return root
887 }
888
889 parent := root
890 for _, part := range strings.Split(path, " ") {
891 child := &cobra.Command{Use: part}
892 parent.AddCommand(child)
893 parent = child
894 }
895 return parent
896}
897
898func jsonErrorExampleCommandWithAsMember(path string, memberID string) *cobra.Command {
899 cmd := jsonErrorExampleCommand(path)

Calls

no outgoing calls

Tested by

no test coverage detected