using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Text; namespace sharpreleaser { public class Command { public enum CommandType { DOS, DELETE, CREATE, COPY, ZIP, FTP, EMAIL, SVN_UPDATE, GIT_PULL } public enum FlowActions { Continue, Break } private CommandType type; private string commandText; private string output; private string error; private FlowActions onError; public CommandType Type { get { return type; } set { type = value; } } public string CommandText { get { return commandText; } set { commandText = value; } } public string Output { get { return output; } set { output = value; } } public string Error { get { return error; } set { error = value; } } public FlowActions OnError { get { return onError; } set { onError = value; } } public Command() { } public Command(CommandType type, string commandText) { this.type = type; this.commandText = commandText; } public virtual void Execute(Project project) { } public override string ToString() { return type + ": " + commandText; } } }