Exemple #1
0
        private YamlConfig MergeOptions(ScaffolderOptions options, YamlConfig config)
        {
            config.MergeStrategy = options.MergeStrategy;

            // set config folder
            var configFile = GetRootedPath(options.ConfigFile);

            config.ConfigFolder = Path.GetDirectoryName(configFile);

            // set output folder
            config.OutputFolder = GetRootedPath(options.OutputFolder);

            config.ApiUrlPrefix = config.ApiUrlPrefix?.TrimEnd('/');

            return(config);
        }
Exemple #2
0
 public Scaffolder([NotNull] ScaffolderOptions options, [NotNull] YamlConfig config, [NotNull] IVerbService verbService)
 {
     _config      = MergeOptions(options, config);
     _verbService = verbService;
 }