MCPcopy
hub / github.com/argoproj/argo-workflows / NewDataCommand

Function NewDataCommand

cmd/argoexec/commands/data.go:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func NewDataCommand() *cobra.Command {
14 command := cobra.Command{
15 Use: "data",
16 Short: "Process data",
17 RunE: func(cmd *cobra.Command, args []string) error {
18 err := execData(cmd.Context())
19 if err != nil {
20 return fmt.Errorf("%+v", err)
21 }
22 return nil
23 },
24 }
25 return &command
26}
27
28// nolint: contextcheck
29func execData(ctx context.Context) error {

Callers 1

NewRootCommandFunction · 0.85

Calls 2

execDataFunction · 0.85
ContextMethod · 0.65

Tested by

no test coverage detected