grype/cmd
Alex Goodman b1f3be4520
Upgrade config, UI, and command package patterns (#406)
* split and upgrade config processing

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* upgrade UI organization

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* expose logger writter

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add (unused) signal handler

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add (unused) event loop abstraction

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update aux commands to use Cobra RunE over Run

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* upgrade root command to use new event loop and signal handler

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update CLI test to account for config representation

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update dependencies + fix linting

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* decompose application config parse func + add missing config struct tags

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* restore unparam lint exclusion for registry config

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-01 13:03:50 -04:00
..
cmd.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
completion.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
db.go add CLI commands / subcommands 2020-05-26 13:31:50 -04:00
db_check.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
db_delete.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
db_import.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
db_status.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
db_update.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
event_loop.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
event_loop_test.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
root.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
root_test.go bump grype-db version to use main branch 2021-07-20 12:18:29 -04:00
signals.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00
version.go Upgrade config, UI, and command package patterns (#406) 2021-10-01 13:03:50 -04:00