
* 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>
55 lines
3.9 KiB
Go
55 lines
3.9 KiB
Go
package v1shell
|
|
|
|
var Gopher string = `
|
|
.-::-::://:-::- .:/++/'
|
|
'://:-''/oo+//++o+/.://o- ./+:
|
|
.:-. '++- .o/ '+yydhy' o-
|
|
.:/. .h: :osoys .smMN- :/
|
|
-/:.' s- /MMMymh. '/y/ s'
|
|
-+s:'''' d -mMMms// '-/o:
|
|
-/++/++/////:. o: '... s- :s.
|
|
:+-+s-' ':/' 's- /+ 'o:
|
|
'+-'o: /ydhsh. '//. '-o- o-
|
|
.y. o: .MMMdm+y ':+++:::/+:.' s:
|
|
.-h/ y- 'sdmds'h -+ydds:::-.' 'h.
|
|
.//-.d' o: '.' 'dsNMMMNh:.:++' :y
|
|
+y. 'd 's. .s:mddds: ++ o/
|
|
'N- odd 'o/. './o-s-' .---+++' o-
|
|
'N' yNd .://:/:::::. -s -+/s/./s' 'o/'
|
|
so' .h '''' ////s: '+. .s +y'
|
|
os/-.y' 's' 'y::+ +d'
|
|
'.:o/ -+:-:.' so.---.'
|
|
o' 'd-.''/s'
|
|
.s' :y.''.y
|
|
-s mo:::'
|
|
:: yh
|
|
// '''' /M'
|
|
o+ .s///:/. 'N:
|
|
:+ /: -s' ho
|
|
's- -/s/:+/.+h' +h
|
|
ys' ':' '-. -d
|
|
oh .h
|
|
/o .s
|
|
s. .h
|
|
-y .d
|
|
m/ -h
|
|
+d /o
|
|
'N- y:
|
|
h: m.
|
|
s- -d
|
|
o- s+
|
|
+- 'm'
|
|
s/ oo--.
|
|
y- /s ':+'
|
|
s' 'od--' .d:
|
|
-+ ':o: ':+-/+
|
|
y- .:+- '
|
|
//o- '.:+/.
|
|
.-:+/' ''-/+/.
|
|
./:' ''.:o+/-'
|
|
.+o:/:/+-' ''.-+ooo/-'
|
|
o: -h///++////-.
|
|
/: .o/
|
|
//+ 'y
|
|
./sooy.`
|