influxdata / influxdata/influx-cli
influx task update via stdin - unknown command
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
task create via stdin works.
task update via stdin is listed as an option, but isn't accepted.
$ influx version
Influx CLI 2.2.1 (git: 31ac783) build_date: 2022-01-02T12:05:34Z
$ influx task update
NAME:
influx task update - Update task status or script. Provide a Flux script via the first argument or a file.
USAGE:
influx task update [command options] [flux script or '-' for stdin]
COMMON OPTIONS:
--host value HTTP address of InfluxDB [$INFLUX_HOST]
--skip-verify Skip TLS certificate chain and host name verification [$INFLUX_SKIP_VERIFY]
--configs-path value Path to the influx CLI configurations [$INFLUX_CONFIGS_PATH]
--active-config value, -c value Config name to use for command [$INFLUX_ACTIVE_CONFIG]
--http-debug
--json Output data as JSON [$INFLUX_OUTPUT_JSON]
--hide-headers Hide the table headers in output data [$INFLUX_HIDE_HEADERS]
--token value, -t value Token to authenticate request [$INFLUX_TOKEN]
OPTIONS:
--id value, -i value task ID (required)
--status value update tasks status
--file value, -f value Path to Flux script file
Error: Required flag "id" not set
$ influx task update -id 1 -
Error: unknown command "-" for "update"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the task update command and reproduce the documented `influx task update -id 1 -` invocation against the CLI version described. Trace why `-` is treated as an unknown command, then verify that stdin input is accepted as promised by the command usage while the existing task ID and status options continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100