(deps commandDeps)
| 669 | } |
| 670 | |
| 671 | func newTaskProfileInspectCommand(deps commandDeps) *cobra.Command { |
| 672 | return &cobra.Command{ |
| 673 | Use: "inspect <id>", |
| 674 | Short: "Show one task execution profile", |
| 675 | Args: exactOneNonBlankArg(), |
| 676 | RunE: func(cmd *cobra.Command, args []string) error { |
| 677 | client, err := clientFromDeps(deps) |
| 678 | if err != nil { |
| 679 | return err |
| 680 | } |
| 681 | profile, err := client.GetTaskExecutionProfile(cmd.Context(), args[0]) |
| 682 | if err != nil { |
| 683 | return err |
| 684 | } |
| 685 | return writeCommandOutput(cmd, taskExecutionProfileBundle(&profile)) |
| 686 | }, |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | func newTaskProfileUpdateCommand(deps commandDeps) *cobra.Command { |
| 691 | var profileRaw string |
no test coverage detected