()
| 11 | ) |
| 12 | |
| 13 | func 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 |
| 29 | func execData(ctx context.Context) error { |
no test coverage detected