8 Commits

Author SHA1 Message Date
Andrew Lee
50de408a0a
fix: add mutual exclusion for OrgId and OrgName params (#377)
Display an error when the OrgName and OrgId flags are both passed in. Only one or the other is allowed.

closes https://github.com/influxdata/influx-cli/issues/371
2022-05-13 18:50:22 -06:00
Dane Strandboge
adc58b8441
chore: refactor influxid.ID, cleanup organization checking (#326) 2021-11-10 15:12:59 -06:00
Daniel Moran
ead44e4e83
fix: downgrade urfave/cli to v1 to enable more flexible parsing (#154) 2021-06-28 14:49:26 -04:00
Sam Arnold
9747d05ae1
refactor: expose generated code and client business logic to share with Kapacitor (#103)
* refactor: take clients out of internal

* refactor: move stdio to pkg

* Move internal/api to api

* refactor: final changes for Kapacitor to access shared functionality

* chore: regenerate mocks

* fix: bad automated refactor

* chore: extra formatting not caught by make fmt
2021-05-25 10:05:01 -04:00
Sam Arnold
d54aa9ec2d
feat: create subcommand for tasks cli (#102)
* refactor: add task APIs to codegen

* feat: tasks subcommand

Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-05-25 09:06:37 -04:00
Daniel Moran
8e73906437
refactor: replace global slices with functions (#94)
I started to see strange behavior where flags would merge across
subcommands. I'm not sure if the bug was in our 'append' usage or
in urfave/cli's handling of flag-slices, but this change seems to
fix the problem either way.
2021-05-14 16:10:07 -04:00
Daniel Moran
6a9f17d100
feat: add formatted output to influx query (#87) 2021-05-13 10:54:45 -04:00
Daniel Moran
d22fb717c6
feat: port most of influx query from influxdb (#86) 2021-05-12 15:18:08 -04:00