Skip to content

Commit 560541c

Browse files
author
Anton Duppils
authored
rename report to export. (#280)
1 parent a480c27 commit 560541c

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

internal/cmd/report/license/license.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ const (
2121
func NewLicenseCmd(reporter report.IReporter) *cobra.Command {
2222
cmd := &cobra.Command{
2323
Use: "license",
24-
Short: "Generate license report",
25-
Long: `Generate license report from a commit hash.
24+
Short: "Generate license export",
25+
Long: `Generate license export from a commit hash.
2626
This is a premium feature. Please visit https://debricked.com/pricing/ for more info.
27-
The finished report will be sent to the specified email address.`,
27+
The finished export will be sent to the specified email address.`,
2828
PreRun: func(cmd *cobra.Command, _ []string) {
2929
_ = viper.BindPFlags(cmd.Flags())
3030
},
3131
RunE: RunE(reporter),
3232
}
3333

34-
cmd.Flags().StringVarP(&email, EmailFlag, "e", "", "The email address that the report will be sent to")
34+
cmd.Flags().StringVarP(&email, EmailFlag, "e", "", "The email address that the export will be sent to")
3535
viper.MustBindEnv(EmailFlag)
3636

3737
cmd.Flags().StringVarP(&commitHash, CommitFlag, "c", "", "commit hash")
@@ -51,7 +51,7 @@ func RunE(r report.IReporter) func(_ *cobra.Command, args []string) error {
5151
return fmt.Errorf("%s %s\n", color.RedString("⨯"), err.Error())
5252
}
5353

54-
fmt.Printf("%s Successfully ordered license report\n", color.GreenString("✔"))
54+
fmt.Printf("%s Successfully ordered license export\n", color.GreenString("✔"))
5555

5656
return nil
5757
}

internal/cmd/report/report.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ func NewReportCmd(
1717
sbomReporter sbomReport.Reporter,
1818
) *cobra.Command {
1919
cmd := &cobra.Command{
20-
Use: "report",
21-
Short: "Generate reports",
22-
Long: `Generate reports.
23-
Premium is required for license and vulnerability reports. Enterprise is required for SBOM reports. Please visit https://debricked.com/pricing/ for more info.`,
20+
Use: "export",
21+
Short: "Generate exports for vulnerabilities, licenses, and SBOM.",
22+
Long: `Generate exports.
23+
Premium is required for license and vulnerability exports. Enterprise is required for SBOM exports. Please visit https://debricked.com/pricing/ for more info.`,
2424
PreRun: func(cmd *cobra.Command, _ []string) {
2525
_ = viper.BindPFlags(cmd.Flags())
2626
},

internal/cmd/report/sbom/sbom.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const FormatFlag = "format"
3030
func NewSBOMCmd(reporter report.IReporter) *cobra.Command {
3131
cmd := &cobra.Command{
3232
Use: "sbom",
33-
Short: "Generate SBOM report",
34-
Long: `Generate SBOM report for chosen commit and repository.
33+
Short: "Generate SBOM export",
34+
Long: `Generate SBOM export for chosen commit and repository.
3535
For an example of the SBOM format see https://github.com/debricked/blog-snippets/blob/main/example-sbom-report/SBOM_2022-12-14.json.
3636
3737
This is an enterprise feature. Please visit https://debricked.com/pricing/ for more info.`,
@@ -41,18 +41,18 @@ This is an enterprise feature. Please visit https://debricked.com/pricing/ for m
4141
RunE: RunE(reporter),
4242
}
4343

44-
cmd.Flags().StringVarP(&commitId, CommitFlag, "c", "", "The commit that you want an SBOM report for")
44+
cmd.Flags().StringVarP(&commitId, CommitFlag, "c", "", "The commit that you want an SBOM export for")
4545
_ = cmd.MarkFlagRequired(CommitFlag)
4646
viper.MustBindEnv(CommitFlag)
4747

48-
cmd.Flags().StringVarP(&repositoryId, RepositorylFlag, "r", "", "The repository that you want an SBOM report for")
48+
cmd.Flags().StringVarP(&repositoryId, RepositorylFlag, "r", "", "The repository that you want an SBOM export for")
4949
_ = cmd.MarkFlagRequired(RepositorylFlag)
5050
viper.MustBindEnv(RepositorylFlag)
5151

52-
cmd.Flags().StringVarP(&branch, BranchFlag, "b", "", "The branch that you want an SBOM report for")
52+
cmd.Flags().StringVarP(&branch, BranchFlag, "b", "", "The branch that you want an SBOM export for")
5353
viper.MustBindEnv(BranchFlag)
5454

55-
cmd.Flags().StringVarP(&format, FormatFlag, "f", "", `The format that you want the SBOM report in.
55+
cmd.Flags().StringVarP(&format, FormatFlag, "f", "", `The format that you want the SBOM export in.
5656
5757
Supported options are: 'CycloneDX', 'SPDX'`,
5858
)

internal/cmd/report/vulnerability/vulnerability.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ const EmailFlag = "email"
1717
func NewVulnerabilityCmd(reporter report.IReporter) *cobra.Command {
1818
cmd := &cobra.Command{
1919
Use: "vulnerability",
20-
Short: "Generate vulnerability report",
21-
Long: `Generate vulnerability report for all your repositories.
20+
Short: "Generate vulnerability export",
21+
Long: `Generate vulnerability export for all your repositories.
2222
This is a premium feature. Please visit https://debricked.com/pricing/ for more info.
23-
The finished report will be sent to the specified email address.`,
23+
The finished export will be sent to the specified email address.`,
2424
PreRun: func(cmd *cobra.Command, _ []string) {
2525
_ = viper.BindPFlags(cmd.Flags())
2626
},
2727
RunE: RunE(reporter),
2828
}
2929

30-
cmd.Flags().StringVarP(&email, EmailFlag, "e", "", "The email address that the report will be sent to")
30+
cmd.Flags().StringVarP(&email, EmailFlag, "e", "", "The email address that the export will be sent to")
3131
_ = cmd.MarkFlagRequired(EmailFlag)
3232
viper.MustBindEnv(EmailFlag)
3333

@@ -41,7 +41,7 @@ func RunE(r report.IReporter) func(_ *cobra.Command, args []string) error {
4141
return fmt.Errorf("%s %s\n", color.RedString("⨯"), err.Error())
4242
}
4343

44-
fmt.Printf("%s Successfully ordered vulnerability report\n", color.GreenString("✔"))
44+
fmt.Printf("%s Successfully ordered vulnerability export\n", color.GreenString("✔"))
4545

4646
return nil
4747
}

0 commit comments

Comments
 (0)