Updating CLI to include the same inputs that the action supports

This commit is contained in:
Peter Murray
2023-12-18 07:41:27 +00:00
committed by GitHub
parent 4efffecbc6
commit 677cb9cc73
7 changed files with 1787 additions and 1518 deletions
+6
View File
@@ -17,6 +17,9 @@ program.option('--github-api-url <url>', 'GitHub API URL', 'https://api.github.c
program.option('-j --job-name <jobName>', 'Optional name for the activity creating and submitting the graph', 'maven-dependency-submission-cli');
program.option('-i --run-id <jobName>', 'Optional Run ID number for the activity that is providing the graph');
program.option('--snapshot-exclude-file-name', 'exclude the file name in the dependency snapshot report. If false the name of the artifactor from the POM will be used, but any links in GitHub will not work.');
program.option('--snapshot-dependency-file-name <fileName>', 'optional override to specificy the path to the file that the snapshot will be associated with in the repository');
program.parse(process.argv);
const opts = program.opts();
@@ -65,6 +68,9 @@ async function execute() {
job,
sha: opts.sha,
ref: opts.branchRef,
manifestFile: opts.snapshotDependencyFileName,
includeManifestFile: !opts.snapshotExcludeFileName,
}
snapshot = await generateSnapshot(opts.directory, mvnConfig, snapshotConfig);