From d2eccc98adfeb23868f21d677963e7a2d3e095ae Mon Sep 17 00:00:00 2001 From: Chhatoi Pritam Baral Date: Sat, 12 Nov 2016 08:38:36 +0530 Subject: [PATCH] Fix reading basedir from config and cli flag --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 77e4b57..edee69c 100644 --- a/main.go +++ b/main.go @@ -125,6 +125,7 @@ func preRun(cmd *cobra.Command, args []string) error { OutFolder: viper.GetString("output"), Schema: viper.GetString("schema"), PkgName: viper.GetString("pkgname"), + BaseDir: viper.GetString("basedir"), Debug: viper.GetBool("debug"), NoTests: viper.GetBool("no-tests"), NoHooks: viper.GetBool("no-hooks"),