workflow

package
v0.8.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetCmd = &cobra.Command{
	Use:     "get [id]",
	Short:   "get a workflow",
	Example: "tink workflow get [id]",
	Deprecated: `This command is deprecated and it will change at some
	point. Please unset the environment variable TINK_CLI_VERSION and if
	you are doing some complex automation try using the following command:

	$ tink workflow get -o json [id]
`,

	DisableFlagsInUseLine: true,
	Args: func(c *cobra.Command, args []string) error {
		if len(args) == 0 {
			return fmt.Errorf("%v requires an argument", c.UseLine())
		}
		return validateID(args[0])
	},
	Run: func(c *cobra.Command, args []string) {
		for _, arg := range args {
			req := workflow.GetRequest{Id: arg}
			w, err := client.WorkflowClient.GetWorkflow(context.Background(), &req)
			if err != nil {
				log.Fatal(err)
			}
			fmt.Println(w.Data)
		}
	},
}

GetCmd represents the get subcommand for workflow command.

Functions

func NewCreateCommand added in v0.5.0

func NewCreateCommand() *cobra.Command

func NewDataCommand added in v0.5.0

func NewDataCommand() *cobra.Command

dataCmd represents the data subcommand for workflow command.

func NewDeleteOptions added in v0.5.0

func NewDeleteOptions() delete.Options

func NewGetOptions added in v0.5.0

func NewGetOptions() get.Options

func NewListCommand added in v0.5.0

func NewListCommand() *cobra.Command

listCmd represents the list subcommand for workflow command.

func NewShowCommand added in v0.5.0

func NewShowCommand() *cobra.Command

func NewStateCommand added in v0.5.0

func NewStateCommand() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL