Fix reading basedir from config and cli flag

This commit is contained in:
Chhatoi Pritam Baral 2016-11-12 08:38:36 +05:30 committed by Aaron L
parent b2ddac4107
commit d2eccc98ad

View file

@ -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"),