]> xenbits.xensource.com Git - people/gdunlap/xsatool.git/commit
main: Clean up command demuxer
authorGeorge Dunlap <george.dunlap@citrix.com>
Mon, 30 Oct 2017 12:33:25 +0000 (12:33 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 30 Oct 2017 12:33:25 +0000 (12:33 +0000)
commit8155bf6343f02fc25df49ee76f0d9054c4692eb0
tree5e60bf2eaba753deaeff31b6ddaab214e6edd238
parenta1b2f54a2b5e277e81e404a237509ae11eadc042
main: Clean up command demuxer

Minimize changing of variables by setting loadConfig to 'true', and
only disabling it for "repo init", setting loadXSA to true for all
'xsanum' commands, and using 'switch' rather than 'else'.

This also fixes a bug where an unknown 'target' would cause xsatool to
dereference nil.

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