featurebase/ctl
Lory Cloutier f627199acb FB-1766: cleaning up the CmdIO objects passing alternate stdin/
stdout/stderr around

A lot of functions in the cmd and ctl packages were passing these
around and barely using them. Replaced them with a logger for most
functions. Some functions get an io.Writer instead so that their
tests can find the output they're looking for.

More cleanup on fb-1766: reworked the tests that were using io.Pipe
or os.Pipe to check their results so they now use a bytes.Buffer.

Unexported some variables that didn't need to be exported.
Fixed NewConfigCommand to use the provided stderr, not os.Stderr.
Added tests for rbf_dump, rbf_page, and keygen, since those weren't
being tested at all.

Added chksum_test, final cleanup.
2022-11-29 12:49:36 -06:00
..
testdata FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
auth_token.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
auth_token_internal_test.go write header before body 2022-11-18 13:41:45 -06:00
backup.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
backup_tar.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
backup_tar_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
backup_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
chksum.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
chksum_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
cli.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
common.go remove http subpackage and bring implementations into core 2022-02-03 21:04:04 -06:00
config.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
config_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
dax.go Add DAX - full list of squashed commits below 2022-11-16 11:19:40 -06:00
doc.go add copyright notice back in 2021-12-10 11:01:04 -06:00
export.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
export_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
generate_config.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
generate_config_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
import.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
import_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
keygen.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
keygen_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
main_test.go listen on localhost:0 instead of :0 2022-03-18 13:38:30 -05:00
rbf_check.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_check_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_dump.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_dump_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_page.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_page_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_pages.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf_pages_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore_tar.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore_tar_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
server.go Dataframe (#2241) 2022-11-21 17:38:48 -06:00
server_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
util.go Distinguish between usage errors and other errors 2022-11-18 13:41:45 -06:00