Commit Graph

122 Commits (b1622fbcc72bf42f66a40b5beb2b2142257d1636)

Author SHA1 Message Date
Cory LaNou 05a8c106e8 add database/retention policy context switching. log failed imports 2015-08-06 09:19:34 -05:00
Cory LaNou 30a0ca0130 start of a v8 data importer via the cli 2015-08-06 09:19:34 -05:00
gunnaraasen 32d3d70da9 Remove all dump code from CLI 2015-07-23 17:21:01 -07:00
Sean Beckett 7b6cbbe9b3 removing DUMP from CLI help 2015-07-23 17:19:58 -07:00
Alexander Morozov 675eacbf2c Fix style issues with else
In go it's better to just continue flow without "else", if it is return in
"if" statement.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-07-17 11:10:23 -07:00
Philip O'Toole 62f0399645 Add another "use;" unit test 2015-07-17 10:57:01 -07:00
Timothy Raymond 21582ad0d6 Allow semicolons to trail database names in "use"
Prior to this commit, the "use" command treated trailing semicolons as
significant parts of the database name. This lead to a confusing user
experience since other parts of influxql treat the trailing semicolon as
a statement separator, or appear to ignore it. A typical use case looks
something like:

> show databases;
-- snip --
> use foo;

This commit trims off trailing semicolons from database names in "use"
commands if present to match user expectations.

Fixes #2258
2015-07-17 10:54:07 -07:00
gunnaraasen f46e66ef37 Update link in CLI shell help command 2015-07-14 10:46:49 -07:00
David Lawrence 6a2707a313 Update main.go
Make the formatting of the flag info consistent.

Signed-off-by: David Lawrence <dclwrnc@gmail.com> (github: endophage)
2015-07-10 10:27:30 -07:00
JP 23728340d0 add ssl flag to convert scheme to https 2015-06-29 10:49:27 -05:00
gunnaraasen 9e59272b0b Change error message 2015-06-24 11:50:06 -07:00
gunnaraasen 5bb4d3d3e6 Add tests 2015-06-23 23:11:12 -07:00
gunnaraasen b01d63f148 Fix CLI panic on malformed INSERT. Fixes #3078 2015-06-23 23:11:11 -07:00
gunnaraasen 2d712733e9 Clean up INSERT INTO parsing and tests 2015-06-09 15:45:26 -07:00
gunnaraasen c440849e3b Add tests for INSERT and INSERT INTO 2015-06-09 15:14:16 -07:00
gunnaraasen 030cb52602 Add INSERT INTO 2015-06-09 15:14:16 -07:00
gunnaraasen de389e6fc8 Add INSERT keyword to CLI for writing points via the line protocol 2015-06-09 15:14:16 -07:00
ben hockey 7ee92cf9b8 name the FlagSet for the shell and add a version flag 2015-05-21 09:25:56 -05:00
Cory LaNou 60729fdd77 cli usage corrections 2015-05-18 18:18:44 -06:00
Cory LaNou 8beda919d0 update usage 2015-05-18 18:18:44 -06:00
Cory LaNou 977b84d6a0 update cli flags: output -> format, +pretty 2015-05-18 18:18:44 -06:00
Cory LaNou e947fc41b8 clean up liner before an os exit (skips the defer) 2015-05-18 18:18:44 -06:00
Cory LaNou 6c0bfb5a43 make all integration tests safe to run in parallel 2015-04-17 16:18:28 -07:00
Philip O'Toole 4171c568a1 Remove tests that require import of influxd main 2015-04-16 10:28:21 -07:00
Cory LaNou 96a30389f8 pr review changes 2015-04-13 16:27:43 -06:00
Cory LaNou 33f976a340 lot of refactoring to create integration tests for cli 2015-04-13 15:56:49 -06:00
Cory LaNou 1ae5c09f61 let the client library handle setting auth 2015-04-13 15:56:29 -06:00
Dejan Golja c232e21ef1 improve exit code(s) for influx CLI 2015-04-11 20:45:08 +10:00
Dejan Golja 0f7e3d259b Added the option to influx CLI to execute single command and exit.
Helpful when scripting and automating installs
2015-04-10 00:27:57 +10:00
Jari Sukanen a56ea6f191 client: rename client.Results type to client.Response (issue: #2050)
Rename client.Results to client.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 11:43:53 +03:00
Todd Persen 8425c0c578 Final cleanups based on review feedback. 2015-03-18 23:02:11 -07:00
Joseph Rothrock 21fd2e2662 dump cmd
rename dump flag

put an error response body if json marshalling breaks.

detect and respond to http error codes in the client.
2015-03-18 14:10:36 -07:00
Joseph Rothrock 5df3e8c3aa suppress more client msgs 2015-03-17 14:44:15 -07:00
Joseph Rothrock 9b3f0399af oops, left in some cruft 2015-03-17 13:57:47 -07:00
Joseph Rothrock d7420683ae tweaking in response to various PR comments 2015-03-16 15:31:41 -07:00
Joseph Rothrock a342a1e3fd remove commented line 2015-03-13 16:11:31 -07:00
Joseph Rothrock 4aa47dbe07 Merge branch 'master' of github.com:influxdb/influxdb into export
and update changelog
2015-03-13 16:07:47 -07:00
Joseph Rothrock 4aabcd907c Dump cmd
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Cory LaNou b0be24beb1 less header lines 2015-03-12 11:17:28 -06:00
Cory LaNou 5ce7307f31 append line separator in correct spot 2015-03-12 11:17:28 -06:00
Cory LaNou 15e1f9acca add trailing line separator for column format 2015-03-12 11:17:09 -06:00
Cory LaNou 04ed8a8fef sort tags for consistency 2015-03-12 11:17:09 -06:00
Cory LaNou b18ac070b9 no need to pass arg 2015-03-12 11:17:09 -06:00
Cory LaNou 24804036ef no need to pass arg 2015-03-12 11:17:08 -06:00
Cory LaNou f0f3be9aa7 refactoring column format to be much more intelligent, fixed typo seperator -> separator 2015-03-12 11:17:08 -06:00
Cory LaNou 891a15662a no more line headers 2015-03-12 11:17:08 -06:00
Cory LaNou b94027fb84 add line separator between result outputs 2015-03-12 11:17:08 -06:00
Cory LaNou b36217cecd fixing bug with headers output 2015-03-12 11:17:08 -06:00
Cory LaNou 96856ffb19 stop writing blank columns, repeate headers as necessary 2015-03-12 11:17:08 -06:00
Joseph Rothrock 12760b9023 turn a 'Row' into distinct points 2015-03-11 16:54:17 -07:00
Joseph Rothrock 3193e2129b make a dump command 2015-03-10 16:30:43 -07:00
Jesse Becker (NCBI) 0f7c69c587 Fix for #1760: influx doesn't create $HOME/.influx_history 2015-03-03 17:12:19 -05:00
Kai Zhang ef262171d6 trim command line before parse it
This can avoid some errors caused by an additional space at the end of
the command line.

For example: 'use db ' will be trimed to 'use db' and parsed correctly.

Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
2015-03-01 10:44:20 +08:00
Philip O'Toole 3e727ac01e Change "Rows" to "Series" in API output 2015-02-22 21:21:49 -08:00
Mark Rushakoff f6b26d30dd Shell includes version in user agent string
Note on how overriding the version works:

If you just run `go run cmd/influx/main.go` you'll see the shell print
out "Influx DB shell 0.9" as this commit sets the package-level variable
`version` to the string "0.9".

Running `go run -ldflags "-X main.version 123" cmd/influx/main.go` will
print out "Influx DB shell 123". (`-ldflags` works for `go install` and
`go build`, too.)
2015-02-11 22:08:21 -08:00
Mark Rushakoff e9d5b74738 Client user agent is configurable 2015-02-11 12:35:15 -08:00
Cory LaNou 7dbd9c0d3d combine error checking 2015-02-10 09:12:18 -07:00
Cory LaNou 7b28df0d49 someone needs to add a precommit hook... 2015-02-10 08:54:19 -07:00
Cory LaNou 091fd254da merge gone bad somewhere 2015-02-05 08:50:08 -07:00
Cory LaNou bc264fc430 be more strict on password arg, check if password was set 2015-02-03 15:21:48 -07:00
Cory LaNou 7b5af491d7 cli - prompt for password if blank but specified in args 2015-02-03 15:21:48 -07:00
Cory LaNou 83c39d70c4 cli - prompt for password, add auth command fixes #1441 2015-02-03 15:21:24 -07:00
Cory LaNou 781bf45a70 fixing comment grammer 2015-02-03 15:10:32 -07:00
Cory LaNou 8dd52a1ea0 removing duplicate error check 2015-02-03 15:08:47 -07:00
Cory LaNou d3c98de563 adding new output formats to cli: csv, column, json. fixes 1419 2015-02-03 14:43:18 -07:00
Cory LaNou 36cd5d1b24 add some basic test coverage for now 2015-02-03 10:22:50 -07:00
Cory LaNou dfcfa9e673 allow cli to connect with :8087 syntax 2015-02-03 09:34:13 -07:00
Cory LaNou a3a4a03263 add const for default_host in cli 2015-02-03 09:24:26 -07:00
Cory LaNou b090768890 cli can now connect to other servers while in shell 2015-02-03 09:15:11 -07:00
Cory LaNou 1ad0e32c0a add warning if querying resulted in an error and database was not set 2015-01-30 14:38:27 -07:00
Cory LaNou 85499c6f17 enable use command in cli 2015-01-30 14:31:53 -07:00
Cory LaNou e066826657 renamed influxdb to influx for cli 2015-01-28 17:22:28 -07:00