diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-01-16 13:26:32 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-01-16 13:26:32 -0500 |
| commit | 719ab6c074c1104a2a8e165486dbbd236ca49e11 (patch) | |
| tree | 3ea28824015b1bf9e674cc9222090ca14ef507d6 /steam-export-cli.go | |
| parent | b7f674cb4e752808d16c314b4b3561d1a3a37e1f (diff) | |
| download | steam-export-719ab6c074c1104a2a8e165486dbbd236ca49e11.tar.gz steam-export-719ab6c074c1104a2a8e165486dbbd236ca49e11.tar.xz | |
Allow a default repositoriy to be set in 'config.yml' Minor changes to build script.
Diffstat (limited to 'steam-export-cli.go')
| -rw-r--r-- | steam-export-cli.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/steam-export-cli.go b/steam-export-cli.go index 30afe83..5f5a0ca 100644 --- a/steam-export-cli.go +++ b/steam-export-cli.go @@ -6,6 +6,7 @@ import ( "fmt" "os" + "git.riedstra.us/mitch/steam-export/config" "git.riedstra.us/mitch/steam-export/steam" ) @@ -156,6 +157,15 @@ func deleteGame(args []string) error { } func main() { + config, err := config.LoadConfig() + if err != nil { + fmt.Println(err) + } else { + if config.DefaultRepository != "" { + defaultLib = config.DefaultRepository + } + } + if err := parseArgs(os.Args); err != nil { fmt.Fprintln(os.Stderr, err) printHelp() |
