Esempio n. 1
0
 public MainWindow(IWDExtractor wdExtractor, ITEXConverter texConverter, IIndex <string, IMSHConverter> mshConverters)
 {
     InitializeComponent();
     _wdExtractor   = wdExtractor;
     _texConverter  = texConverter;
     _mshConverters = mshConverters;
 }
Esempio n. 2
0
        public WDCommand(IWDExtractor extractor, ILogger <WDCommand> logger) : base("wd", "Extract WD file content")
        {
            _extractor = extractor;
            _logger    = logger;
            var input  = new Argument <string>("input", "WD file path");
            var output = new Option <string>(new[] { "--output", "-o" }, "Output directory. Current if not specified.");

            AddArgument(input);
            AddOption(output);
            Handler = CommandHandler.Create <string, string>(HandleCommand);
        }