Skip to content

Commit

Permalink
Updated CLI usage docs with coverage-files flag
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantdange committed Jul 28, 2023
1 parent c859735 commit 1e23f9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/test-reporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ FLAGS
--repository-id (required) BuildPulse repository ID for the repository that produced the test results
--repository-dir Path to local git clone of the repository (default: ".")
--tree SHA-1 hash of the git tree that produced the test results (for use only if a local git clone does not exist)
--coverage-files Paths to coverage files or directories containing coverage files (space-separated)
ENVIRONMENT VARIABLES
Set the following environment variables:
Expand All @@ -38,7 +39,7 @@ ENVIRONMENT VARIABLES
BUILDPULSE_SECRET_ACCESS_KEY BuildPulse secret access key for the account that owns the repository
EXAMPLE
$ %s submit test/reports/*.xml --account-id 42 --repository-id 8675309
$ %s submit test/reports/*.xml --account-id 42 --repository-id 8675309 --coverage-files coverage/coverage.xml coverage/coverage2.xml
`, "\t", " ")

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ require (
github.com/mholt/archiver/v3 v3.5.1
github.com/otiai10/copy v1.9.0
github.com/stretchr/testify v1.8.2
github.com/yargevad/filepathx v1.0.0
gopkg.in/yaml.v3 v3.0.1
github.com/yargevad/filepathx v1.0.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/submit/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewSubmit(version *metadata.Version, log logger.Logger) *Submit {
s.fs.Uint64Var(&s.repositoryID, "repository-id", 0, "BuildPulse repository ID (required)")
s.fs.StringVar(&s.repositoryPath, "repository-dir", ".", "Path to local clone of repository")
s.fs.StringVar(&s.tree, "tree", "", "SHA-1 hash of git tree")
s.fs.StringVar(&s.coveragePathsString, "coverage-files", "", "Paths to coverage files or directories containing coverage files")
s.fs.StringVar(&s.coveragePathsString, "coverage-files", "", "Paths to coverage files or directories containing coverage files (space-separated)")
s.fs.SetOutput(io.Discard) // Disable automatic writing to STDERR

s.logger.Printf("Current version: %s", s.version.String())
Expand Down

0 comments on commit 1e23f9d

Please sign in to comment.