featurebase/cli
Travis Turner 393721c0ce
Add viper (for env variable) support to CLI (#2251)
* Add viper (for env variable) support to CLI

* Move the "featurebase cli" sub-command to its own "fbsql" command

I don't know if this is the final name, but putting it here as a
placeholder for now.

* Handle single `--command` flags.

This also adds a printer interface so we can opt NOT to print setup
information in non-interactive mode.

* Add support for multiple `--command` flags in the same call

* Add support for multiple `--file` flags

* Move members related to Config into a separate struct

* Make sure non-interactive mode can connect to a database

* comment fix

* support control-C on readline

* Prevent connection message from printing in non-interactive mode

* Return errors (instead of printing them) in non-interactive mode
2023-02-16 20:41:39 -06:00
..
fbcloud CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
buffer.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
cli.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00
cli_test.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00
config.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00
meta.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00
parts.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
queryer.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
splitter.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
splitter_test.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
workingdir.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
writer.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00
writer_test.go Add viper (for env variable) support to CLI (#2251) 2023-02-16 20:41:39 -06:00