(cmd *cobra.Command, f *Flag, isUpdate bool)
| 445 | } |
| 446 | |
| 447 | func markFlagRequired(cmd *cobra.Command, f *Flag, isUpdate bool) error { |
| 448 | if f.IsRequired && !isUpdate { |
| 449 | return cmd.MarkFlagRequired(f.LongForm) |
| 450 | } |
| 451 | |
| 452 | return nil |
| 453 | } |
| 454 | |
| 455 | func unexpectedError(err error) error { |
| 456 | return fmt.Errorf("an unexpected error occurred: %w", err) |
no outgoing calls
no test coverage detected