protected override void PreExecution(System.Collections.Generic.IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { SetCommandAndArguments(DownloadCommand, CreateArgument()); }
protected override void PostExecution(System.Collections.Generic.IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { output.ResetColors(); }
protected override void PreExecution(System.Collections.Generic.IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { SetCommandAndArguments(PromptCommand, Text); var color = ColorNameToConsoleColor(this.Color); output.SetForegroundColor(color); }
protected override void PreExecution(System.Collections.Generic.IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { if (string.IsNullOrWhiteSpace(Source)) { throw new InvalidOperationException("Cannot use LinkModule without a Source."); } // Target may be null as the source name will be used instead. SetCommandAndArguments(LinkCommand, CreateArgument()); }
protected override void PreExecution(IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { ThrowIfNoFolderSet(); SetCommandAndArguments(FolderCommand, CreateArgument()); }
protected override void PreExecution(System.Collections.Generic.IDictionary <string, string> variables, Helpers.ColoredTextWriter output) { if (string.IsNullOrWhiteSpace(this.Command)) { throw new InvalidOperationException("Cannot run a shell command with a command."); } }