Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit deba87e

Browse files
authored
Allow for user input to control which repositories to include in a cci audit (#74)
* Add --include-from option to cci audit * Lint
1 parent a39bdf3 commit deba87e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Valet/Commands/Circle/Audit.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,19 @@ public Audit(string[] args) : base(args)
1818
IsRequired = false,
1919
};
2020

21+
private static readonly Option<FileInfo> IncludeFrom = new("--include-from")
22+
{
23+
Description = "The file path containing a list of line-delimited repositories to include in the audit.",
24+
IsRequired = false,
25+
};
26+
2127
protected override ImmutableArray<Option> Options => ImmutableArray.Create<Option>(
2228
Common.InstanceUrl,
2329
Common.AccessToken,
2430
Common.Organization,
2531
Common.SourceGitHubAccessToken,
2632
Common.SourceGitHubInstanceUrl,
27-
ConfigFilePath
33+
ConfigFilePath,
34+
IncludeFrom
2835
);
2936
}

0 commit comments

Comments
 (0)