Ejemplo n.º 1
0
        public static GeneralOptions GetToolOptions(IEnumerable <string> arguments, ILogger logger)
        {
            var goptions = new GeneralOptions();

            goptions.LoadOptions(arguments, logger);

            switch (goptions.Tool)
            {
            case "tbsmigration":
            {
                var options = new MigrationOptions();
                options.LoadOptions(arguments, logger);
                return(options);
            }

            case "sampletool":
            {
                var options = new SampleToolOptions();
                options.LoadOptions(arguments, logger);
                return(options);
            }
            }
            return(goptions);
        }
Ejemplo n.º 2
0
 public SampleToolEngine(SampleToolOptions migrationOptions, ILogger logger)
 {
     _options = migrationOptions;
     _logger  = logger;
 }