airshipctl/cmd/baremetal
Ruslan Aliev bc90c4f39e Move config init and load from root cmd level
There are several commands which do not require to load config:
completion, help, secret, version. Hovewer, PersistentPreRun call
at root level forces airshipctl to load config anyway. Therefore,
we can observe unnecessary config load errors instead of actual result.
This patch moves config load to subcommand level where it is necessary.

Change-Id: I774a7d038c408e71688f7bf04f1cb87a2132a342
2020-05-09 01:51:09 -05:00
..
testdata/TestBaremetalGoldenOutput Add baremetal ejectmedia command 2020-04-28 23:10:36 +00:00
baremetal.go Move config init and load from root cmd level 2020-05-09 01:51:09 -05:00
baremetal_test.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
ejectmedia.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
isogen.go Increase code coverage 2020-04-28 13:46:06 -05:00
poweroff.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
poweron.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
powerstatus.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
reboot.go Fix power command host selectors 2020-05-01 16:59:16 +00:00
remotedirect.go Increase code coverage 2020-04-28 13:46:06 -05:00