Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Command base to use IConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
msimecek committed Jul 2, 2019
1 parent 2ba6e92 commit c5494bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions SpeechCLI/Commands/SpeechCommandBase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using CRIS;
using CRIS.Models;
using McMaster.Extensions.CommandLineUtils;
using SpeechCLI.Interfaces;
using SpeechCLI.Utils;
using System;
using System.Collections.Generic;
Expand All @@ -18,9 +19,9 @@ abstract class SpeechCommandBase

protected static ISpeechServicesAPIv20 _speechApi;
protected static IConsole _console;
protected static Config _config;
protected static IConfig _config;

public SpeechCommandBase(ISpeechServicesAPIv20 speechApi, IConsole console, Config config)
public SpeechCommandBase(ISpeechServicesAPIv20 speechApi, IConsole console, IConfig config)
{
_speechApi = speechApi;
_console = console;
Expand Down
2 changes: 1 addition & 1 deletion SpeechCLI/Commands/TranscriptCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace SpeechCLI.Commands
[Subcommand("single", typeof(Single))]
class TranscriptCommand : SpeechCommandBase
{
public TranscriptCommand(ISpeechServicesAPIv20 speechApi, IConsole console, Config config) : base(speechApi, console, config) { }
public TranscriptCommand(ISpeechServicesAPIv20 speechApi, IConsole console, IConfig config) : base(speechApi, console, config) { }

[Command(Description = "Start new batch transcription.")]
class Create : ParamActionCommandBase
Expand Down
2 changes: 0 additions & 2 deletions SpeechCLI/MainApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ int OnExecute(CommandLineApplication app, IConsole console)
return 0;
}
}


}

0 comments on commit c5494bf

Please sign in to comment.