-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a158129
commit df487b4
Showing
33 changed files
with
533 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,52 @@ | ||
namespace Geco.Common | ||
{ | ||
/// <summary> | ||
/// Represents a runable task, for code generation or purposes or others | ||
/// Represents a runnable task, for code generation or purposes or others | ||
/// </summary> | ||
public interface IRunnable | ||
{ | ||
/// <summary> | ||
/// Invoked when this task is executed | ||
/// Invoked when this task is executed | ||
/// </summary> | ||
void Run(); | ||
} | ||
|
||
/// <summary> | ||
/// Represents a runable task that outputs files to a location | ||
/// Represents a runnable task that outputs files to a location | ||
/// </summary> | ||
public interface IOutputRunnable : IRunnable | ||
{ | ||
|
||
/// <summary> | ||
/// <c>true</c> if the task output should be mirrored to the console. <c>false</c> otherwise | ||
/// <c>true</c> if the task output should be mirrored to the console. <c>false</c> otherwise | ||
/// </summary> | ||
bool OutputToConsole { get; set; } | ||
|
||
/// <summary> | ||
/// Base path which will be combined with the file names of the files output by this task. | ||
/// Base path which will be combined with the file names of the files output by this task. | ||
/// </summary> | ||
string BaseOutputPath { get; set; } | ||
|
||
/// <summary> | ||
/// A wild card base pattern for deleting the files from the <see cref="BaseOutputPath"/> prior to generation. | ||
/// A wild card base pattern for deleting the files from the <see cref="BaseOutputPath" /> prior to generation. | ||
/// </summary> | ||
string CleanFilesPattern { get; set; } | ||
|
||
/// <summary> | ||
/// <c>true</c> if the Geco is running in interactive mode and the task may ask for additional user input. <c>false</c> otherwise | ||
/// <c>true</c> if the Geco is running in interactive mode and the task may ask for additional user input. <c>false</c> | ||
/// otherwise | ||
/// </summary> | ||
bool Interactive { get; set; } | ||
} | ||
|
||
|
||
public interface IRunableConfirmation | ||
/// <summary> | ||
/// Represents a task that asks for user confirmation when running in <see cref="Program.Interactive"/> mode | ||
/// </summary> | ||
public interface IRunnableConfirmation | ||
{ | ||
/// <summary> | ||
/// Called to get user confirmation before running the task | ||
/// </summary> | ||
/// <returns><c>true</c> if the user confirmed the action, <c>false</c> otherwise</returns> | ||
bool GetUserConfirmation(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.