influxdata / influx-cli

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

Influx CLI: Add ability to create a Task linked to a Script #407

Closed brettbuddin closed 1 year ago

brettbuddin commented 2 years ago

When creating a task, we can either provide flux that the task executes or a script ID with optional parameters.

https://github.com/influxdata/influx-cli/blob/d3e0efb560b6272e18d6436cc25e52f7e7036a17/cmd/influx/task.go#L32 https://github.com/influxdata/influx-cli/blob/d3e0efb560b6272e18d6436cc25e52f7e7036a17/clients/task/task.go#L70