]> xenbits.xensource.com Git - people/gdunlap/xsatool.git/commit
main: Always attempt load the config
authorGeorge Dunlap <george.dunlap@citrix.com>
Mon, 30 Oct 2017 17:34:23 +0000 (17:34 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 30 Oct 2017 17:34:23 +0000 (17:34 +0000)
commita70f82b5487b5003cad3bc91e7e780aa84e907cf
tree2c0a6487105c8e001c5ed72796a731fdfc85a733
parent1895257c7ea4a3fdc3299747283a7d1f4ac400d5
main: Always attempt load the config

Rather than loading most of the time in main() (and failing if it fails),
and then also loading the config in "repo init" (and tolerating its absence),
always attempt to load the config, and only fail if we end up missing bits of
information that we need.

This will set the stage for unifying the configuration and the
command-line options.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
main.go
meta.go
repo.go