24 Commits

Author SHA1 Message Date
dependabot[bot]
e2e7fcf218
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 (#499)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 09:09:26 -04:00
Jeffrey Smith II
8a2499f476
chore: update to go 1.20.3 (#496)
* chore: update to go 1.20.3

* chore: update to go 1.20.3
2023-04-11 12:48:19 -04:00
Jeffrey Smith II
88517ea782
chore: version bump sys to support riscv (#483)
* chore: version bump sys to support riscv

* chore: go mod tidy
2023-04-03 13:08:41 -04:00
Jeffrey Smith II
90e825cdd9
chore: update go-prompt to fix terminal clear issue (#462) 2022-12-12 17:16:45 -05:00
Andrew Lee
da2899d71d
feat: add skipRowOnError handling for raw line protocol files (#419)
* feat: add skipRowOnError for raw line protocol files

* use common code from influxdb instead of copying

* add test

* remove dead code comment
2022-07-01 10:14:14 -06:00
Andrew Lee
9dc1b8e4b1
feat: add pretty table format to REPL (#393)
* add v1-compatible query path and refactor other paths to de-duplicate "/query"

* add initial influxQL repl

* add ping endpoint to schema

* improve prompt UX, implement some commands

* fix json column type in schema and improve completion

* feat: add table formatter and move to forked go-prompt

* improve formatting and add table pagination

* implement more REPL commands, including insert and history

* implement "INSERT INTO"

* move repl command to "v1 repl"

* refactor and improve documentation

* clean up v1_repl cmd

* update to latest openapi, use some openapi paths instead of overrides

* remove additional files that were moved to openapi

* compute historyFilePath at REPL start

* clean up REPL use command logic flow

* clean up comments for TODOs now in issues

* move gopher (chonky boi)

* remove autocompletion for separate PR

* run go mod tidy

* add rfc3339 precision option

* allow left and right column scrolling to display whole table

* add error to JSON query response

* add tags and partial to JSON response series schema

* fix csv formatting and add column formatting

* remove table format for separate PR

* add pretty table format to REPL

* fix getDatabases

* move from write to legacy write endpoint for INSERT

* remove history vestiges

* allow multiple spaces in INSERT commands

* add precision comment

* remove auth for separate PR

* separate parseInsert and add unit test

* add additional test case and improve error messages

* fix missing errors import

* update for simpler horizontal scrolling in table mode

* improve dialog printing

* improve table format and interactions

* jump to first page on shift-up

* add keybinding info

* change wording from result to table, flip
2022-06-24 09:08:51 -06:00
Andrew Lee
c695e601a5
Add REPL autocompletion & go-prompt (#392)
* add v1-compatible query path and refactor other paths to de-duplicate "/query"

* add initial influxQL repl

* add ping endpoint to schema

* improve prompt UX, implement some commands

* fix json column type in schema and improve completion

* feat: add table formatter and move to forked go-prompt

* improve formatting and add table pagination

* implement more REPL commands, including insert and history

* implement "INSERT INTO"

* move repl command to "v1 repl"

* refactor and improve documentation

* clean up v1_repl cmd

* update to latest openapi, use some openapi paths instead of overrides

* remove additional files that were moved to openapi

* compute historyFilePath at REPL start

* clean up REPL use command logic flow

* clean up comments for TODOs now in issues

* move gopher (chonky boi)

* remove autocompletion for separate PR

* run go mod tidy

* add back autocompletion & go-prompt

* add rfc3339 precision option

* allow left and right column scrolling to display whole table

* add error to JSON query response

* add tags and partial to JSON response series schema

* fix csv formatting and add column formatting

* remove table format for separate PR

* fix getDatabases

* move from write to legacy write endpoint for INSERT

* remove history vestiges

* allow multiple spaces in INSERT commands

* add precision comment

* remove auth for separate PR

* separate parseInsert and add unit test

* add additional test case and improve error messages

* fix missing errors import

* fix format suggestion

* re-add history implementation with history limit

* build: upgrade to Go 1.18.3 (#395)

* feat: add back the InfluxQL REPL (#386)

* add v1-compatible query path and refactor other paths to de-duplicate "/query"

* add initial influxQL repl

* add ping endpoint to schema

* improve prompt UX, implement some commands

* fix json column type in schema and improve completion

* feat: add table formatter and move to forked go-prompt

* improve formatting and add table pagination

* implement more REPL commands, including insert and history

* implement "INSERT INTO"

* move repl command to "v1 repl"

* refactor and improve documentation

* clean up v1_repl cmd

* update to latest openapi, use some openapi paths instead of overrides

* remove additional files that were moved to openapi

* compute historyFilePath at REPL start

* clean up REPL use command logic flow

* clean up comments for TODOs now in issues

* move gopher (chonky boi)

* remove autocompletion for separate PR

* run go mod tidy

* add rfc3339 precision option

* allow left and right column scrolling to display whole table

* add error to JSON query response

* add tags and partial to JSON response series schema

* fix csv formatting and add column formatting

* remove table format for separate PR

* fix getDatabases

* move from write to legacy write endpoint for INSERT

* remove history vestiges

* allow multiple spaces in INSERT commands

* add precision comment

* remove auth for separate PR

* separate parseInsert and add unit test

* add additional test case and improve error messages

* fix missing errors import

* print rfc3339 precision

* add rfc3339 to help output

* run tidy

* restructure autocomplete and handle review items

* improve autocompletion with leftover handling

* improve comments and add autocomplete for DELETE & DROP MEASUREMENT

* rename repl to shell

* remove unsupported CREATE & DROP autocompletions

* additional refactor for autocompletion

Co-authored-by: Dane Strandboge <dstrandboge@influxdata.com>
2022-06-14 15:18:27 -06:00
Andrew Lee
fc529745a5
feat: add back the InfluxQL REPL (#386)
* add v1-compatible query path and refactor other paths to de-duplicate "/query"

* add initial influxQL repl

* add ping endpoint to schema

* improve prompt UX, implement some commands

* fix json column type in schema and improve completion

* feat: add table formatter and move to forked go-prompt

* improve formatting and add table pagination

* implement more REPL commands, including insert and history

* implement "INSERT INTO"

* move repl command to "v1 repl"

* refactor and improve documentation

* clean up v1_repl cmd

* update to latest openapi, use some openapi paths instead of overrides

* remove additional files that were moved to openapi

* compute historyFilePath at REPL start

* clean up REPL use command logic flow

* clean up comments for TODOs now in issues

* move gopher (chonky boi)

* remove autocompletion for separate PR

* run go mod tidy

* add rfc3339 precision option

* allow left and right column scrolling to display whole table

* add error to JSON query response

* add tags and partial to JSON response series schema

* fix csv formatting and add column formatting

* remove table format for separate PR

* fix getDatabases

* move from write to legacy write endpoint for INSERT

* remove history vestiges

* allow multiple spaces in INSERT commands

* add precision comment

* remove auth for separate PR

* separate parseInsert and add unit test

* add additional test case and improve error messages

* fix missing errors import

* print rfc3339 precision

* add rfc3339 to help output
2022-06-10 08:54:07 -06:00
Dane Strandboge
35279515e9
build: upgrade to Go 1.18.1 (#373) 2022-04-13 15:50:35 -05:00
Dane Strandboge
3e76528ed2
build: upgrade protobuf library (#308) 2021-10-18 13:22:54 -05:00
Daniel Moran
38040fa8dc
fix: upgrade golang.org/x/sys to avoid panics on Macs (#252) 2021-09-01 17:38:59 -04:00
Daniel Moran
10c17ec661
build: upgrade staticcheck to latest version (#224) 2021-08-04 14:54:53 -04:00
Daniel Moran
c6f55368ea
test: remove go-cmp dependency (#213) 2021-07-29 12:16:23 -04:00
Daniel Moran
9b54bcb17f
feat: add logic for reading manifest from bolt file (#183) 2021-07-09 09:27:53 -04:00
Daniel Moran
ead44e4e83
fix: downgrade urfave/cli to v1 to enable more flexible parsing (#154) 2021-06-28 14:49:26 -04:00
Daniel Moran
fb2d19c884
feat: port table-printers from influxdb (#145) 2021-06-24 11:31:19 -04:00
Daniel Moran
8972d23024
feat: port jsonnet decoder from influxdb (#143) 2021-06-23 13:37:46 -04:00
Daniel Moran
bd0b90df41
feat: port top-level export command from influxdb (#131) 2021-06-21 08:23:18 -04:00
Stuart Carnie
7eca7c0bb9
feat: Add bucket schema management commands (#52)
* feat: update generated client to include schema-management APIs
* feat: implement interfaces to decode flags and CSV
* feat: implement decoders for different measurement schema column formats
* feat: extend bucket CLI commands to support schema type property
* feat: add CLI commands to manage measurement schema
* test: add unit tests for bucket schema create, update and list commands
2021-05-05 10:12:11 -04:00
Daniel Moran
74d622bece
feat: port rate-limiter from influxdb (#44) 2021-04-26 10:46:32 -04:00
Daniel Moran
68ad797ab7
feat: port influx setup from influxdb (#35) 2021-04-22 09:46:15 -04:00
Daniel Moran
4f62e469e9
refactor: switch to OpenAPITools's generator for our HTTP clients (#33)
* build: add CI job to check OpenAPI generation is clean
* feat: add hidden flag for HTTP debug
2021-04-16 17:16:58 -04:00
Daniel Moran
ca8a5c5364
feat: implement ping command (#31)
* build: use deepmap/oapi-codegen to generate an HTTP client
* feat: add global CLI options
* feat: load local config to find host and token
* feat: implement ping command
* test: add unit tests for ping command
2021-04-14 09:31:21 -04:00
Daniel Moran
8c062cacf0
feat: set up project skeleton for new CLI (#1)
* docs: fill in README
* feat: initial setup of CLI, with help + version commands
* build: add linters and Makefile
* build: add initial CircleCI workflow
2021-04-12 13:39:09 -04:00