airshipctl/pkg/config
Ruslan Aliev ad7f80f2bf Return an error if there is a problem to access config file
Currently, if config file doesn't exist - airshipctl doesn't
throw an error and uses empty config object instead. It seems
this behavior was an attempt to hide an error if there was a call
of subcommand which is not require proper config file. Since we
moved config load calls to the specific subcommands from
root level - current behavior should be changed and we have to
throw an error instead if it's not possible to access config file.

Change-Id: I7e949fbc9d48d682e26500e0b6b6b9bd12665e24
Relates-To: #199
Closes: #199
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-06-12 11:22:47 -05:00
..
testdata Fix default checkout options in Airshipctl config 2020-05-14 04:35:19 +00:00
authinfo_test.go Encoding secret data in airshipctl config files 2020-05-08 15:09:17 +00:00
authinfo.go Fix Lint warnings: Missing comments for functions 2020-04-30 22:32:39 -05:00
bootstrap.go Improve config package organization pt.2 2020-04-29 18:49:00 +04:00
cluster_test.go Improve config package organization pt.1 2020-04-27 20:54:59 +04:00
cluster.go Fix Lint warnings: Missing comments for functions 2020-04-30 22:32:39 -05:00
config_helper_test.go Organize CLI helper functions 2020-04-17 09:28:18 -05:00
config_helper.go Merge "Fix Lint warnings: Missing comments for functions" 2020-05-12 11:13:58 +00:00
config_test.go Add set-management-configuration command 2020-05-28 21:59:44 +00:00
config.go Return an error if there is a problem to access config file 2020-06-12 11:22:47 -05:00
constants.go Add management config validation 2020-05-21 14:21:59 +00:00
context.go Fix Lint warnings: Missing comments for functions 2020-04-30 22:32:39 -05:00
errors.go Add set-management-configuration command 2020-05-28 21:59:44 +00:00
management_test.go Add management config validation 2020-05-21 14:21:59 +00:00
management.go Add management config validation 2020-05-21 14:21:59 +00:00
manifest.go Fix default checkout options in Airshipctl config 2020-05-14 04:35:19 +00:00
options_test.go [#42] Refactor flag operations to be uniform 2020-02-20 11:25:41 -06:00
options.go Fix Lint warnings: Missing comments for functions 2020-05-19 16:54:09 +00:00
repo_test.go Fix pull documents for non-master branch 2020-05-09 01:22:54 -05:00
repo.go Fix pull documents for non-master branch 2020-05-09 01:22:54 -05:00
utils.go Add management config validation 2020-05-21 14:21:59 +00:00