(deps commandDeps)
| 715 | } |
| 716 | |
| 717 | func newTaskProfileDeleteCommand(deps commandDeps) *cobra.Command { |
| 718 | return &cobra.Command{ |
| 719 | Use: taskDeleteIDValue, |
| 720 | Short: "Delete one task execution profile", |
| 721 | Args: exactOneNonBlankArg(), |
| 722 | RunE: func(cmd *cobra.Command, args []string) error { |
| 723 | client, err := clientFromDeps(deps) |
| 724 | if err != nil { |
| 725 | return err |
| 726 | } |
| 727 | if err := client.DeleteTaskExecutionProfile(cmd.Context(), args[0]); err != nil { |
| 728 | return err |
| 729 | } |
| 730 | return writeCommandOutput(cmd, taskExecutionProfileDeleteBundle(args[0])) |
| 731 | }, |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | func buildTaskExecutionProfileRequest( |
| 736 | taskID string, |
no test coverage detected