Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "get", Short: "Get an existing workflow", Long: `Get an existing workflow`, Example: "wfxctl workflow get --name=wfx.workflow.kanban", TraverseChildren: true, Run: func(cmd *cobra.Command, _ []string) { baseCmd := flags.NewBaseCmd() client := errutil.Must(baseCmd.CreateHTTPClient()) params := workflows.NewGetWorkflowsNameParams(). WithHTTPClient(client). WithName(flags.Koanf.String(nameFlag)) if params.Name == "" { log.Fatal().Msg("No workflow name provided") } resp, err := baseCmd.CreateMgmtClient().Workflows.GetWorkflowsName(params) if err != nil { errutil.ProcessErrorResponse(cmd.OutOrStderr(), err) log.Fatal().Msg("Failed to get workflow") } if err := baseCmd.DumpResponse(cmd.OutOrStdout(), resp.GetPayload()); err != nil { log.Fatal().Err(err).Msg("Failed to dump response") } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.