(path string)
| 881 | } |
| 882 | |
| 883 | func 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 | |
| 898 | func jsonErrorExampleCommandWithAsMember(path string, memberID string) *cobra.Command { |
| 899 | cmd := jsonErrorExampleCommand(path) |
no outgoing calls
no test coverage detected