Skip to content

Commit

Permalink
Put aliases for reading issues in own category
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Sep 2, 2017
1 parent 8f2f6eb commit 8754e72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cake.Issues/Aliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static class Aliases
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory(IssuesAliasConstants.ReadCakeAliasCategory)]
public static IEnumerable<IIssue> ReadIssues(
this ICakeContext context,
IIssueProvider issueProvider,
Expand Down Expand Up @@ -74,6 +75,7 @@ public static IEnumerable<IIssue> ReadIssues(
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory(IssuesAliasConstants.ReadCakeAliasCategory)]
public static IEnumerable<IIssue> ReadIssues(
this ICakeContext context,
IEnumerable<IIssueProvider> issueProviders,
Expand Down Expand Up @@ -118,6 +120,7 @@ public static IEnumerable<IIssue> ReadIssues(
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory(IssuesAliasConstants.ReadCakeAliasCategory)]
public static IEnumerable<IIssue> ReadIssues(
this ICakeContext context,
IIssueProvider issueProvider,
Expand Down Expand Up @@ -166,6 +169,7 @@ public static IEnumerable<IIssue> ReadIssues(
/// </code>
/// </example>
[CakeMethodAlias]
[CakeAliasCategory(IssuesAliasConstants.ReadCakeAliasCategory)]
public static IEnumerable<IIssue> ReadIssues(
this ICakeContext context,
IEnumerable<IIssueProvider> issueProviders,
Expand Down
5 changes: 5 additions & 0 deletions src/Cake.Issues/IssuesAliasConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public static class IssuesAliasConstants
/// </summary>
public const string MainCakeAliasCategory = "Issues";

/// <summary>
/// Category to use for all Cake aliases providing functionality for reading issues.
/// </summary>
public const string ReadCakeAliasCategory = "Read";

/// <summary>
/// Category to use for all Cake aliases creating issue providers.
/// </summary>
Expand Down

0 comments on commit 8754e72

Please sign in to comment.