influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

feat: creating tasks with invokable scripts and more create params #413

Closed adepke closed 1 year ago

adepke commented 2 years ago

This PR allows users to create tasks with script IDs instead of Flux in the CLI. The following parameters are now exposed when creating a task:

Only the last two are related to scripts, but if a name and schedule aren't provided the command will fail when trying to create a task (https://github.com/influxdata/idpe/blob/47a5a53d9d00313603ef6f3b5991f3a68122ac4f/task/task.go#L453)

Must merge https://github.com/influxdata/openapi/pull/349 and update the submodule before this PR can be merged!

Closes https://github.com/influxdata/influx-cli/issues/407

adepke commented 1 year ago

Superseded by https://github.com/influxdata/influx-cli/pull/432