-
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.
Adding some options and a few fixes [release]
- Loading branch information
Showing
4 changed files
with
55 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.ComponentModel; | ||
|
||
namespace AddActionsWorkflow.Options | ||
{ | ||
internal partial class OptionsProvider | ||
{ | ||
public class GeneralOptions : BaseOptionPage<General> { } | ||
} | ||
|
||
public class General : BaseOptionModel<General> | ||
{ | ||
[Category("Generator")] | ||
[DisplayName("Default file name")] | ||
[Description("The base name of the workflow (.yaml) file to be generated")] | ||
[DefaultValue("build-")] | ||
public string DefaultName { get; set; } = "build-"; | ||
|
||
[Category("Generator")] | ||
[DisplayName("Randomize file name")] | ||
[Description("If true, a suffix is added to the Default file name to avoid conflicts")] | ||
[DefaultValue(true)] | ||
public bool RandomizeFileName { get; set; } = true; | ||
|
||
[Category("Generator")] | ||
[DisplayName("Overwrite if exists")] | ||
[Description("If true, this will overwrite same-named workflow files if exists")] | ||
[DefaultValue(false)] | ||
public bool OverwriteExisting { get; set; } = false; | ||
|
||
[Category("Generator")] | ||
[DisplayName("Solution Folder")] | ||
[Description("The Solution Items folder to add these to in the Visual Studio solution")] | ||
[DefaultValue("Solution Items")] | ||
public string SolutionFolderName { get; set; } = "Solution Items"; | ||
} | ||
} |