(cmd *cobra.Command, name string, value string)
| 854 | } |
| 855 | |
| 856 | func changedNonEmptyStringFlag(cmd *cobra.Command, name string, value string) (string, error) { |
| 857 | trimmed, err := changedStringFlag(cmd, name, value) |
| 858 | if err != nil { |
| 859 | return "", err |
| 860 | } |
| 861 | if trimmed == "" { |
| 862 | return "", fmt.Errorf("cli: --%s cannot be empty", name) |
| 863 | } |
| 864 | return trimmed, nil |
| 865 | } |
| 866 | |
| 867 | func agentSoulBundle(record AgentSoulRecord) outputBundle { |
| 868 | return outputBundle{ |
no test coverage detected