Skip to content

Commit 8a4e75f

Browse files
committed
refactor: rename cloud package and flags to pro
1 parent a027e52 commit 8a4e75f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/commands/artifact/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"golang.org/x/xerrors"
1515

1616
"github.com/aquasecurity/trivy/pkg/cache"
17-
"github.com/aquasecurity/trivy/pkg/commands/cloud"
1817
"github.com/aquasecurity/trivy/pkg/commands/operation"
18+
"github.com/aquasecurity/trivy/pkg/commands/pro"
1919
"github.com/aquasecurity/trivy/pkg/db"
2020
"github.com/aquasecurity/trivy/pkg/extension"
2121
"github.com/aquasecurity/trivy/pkg/fanal/analyzer"
@@ -376,7 +376,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err
376376
ctx, cancel := context.WithTimeout(ctx, opts.Timeout)
377377
defer cancel()
378378

379-
if err := cloud.UpdateOptsForProIntegration(ctx, &opts); err != nil {
379+
if err := pro.UpdateOptsForProIntegration(ctx, &opts); err != nil {
380380
// log failure but continue with the scan
381381
log.Error("failed to check Trivy Pro integration", "error", err)
382382
}

pkg/commands/cloud/run.go renamed to pkg/commands/pro/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cloud
1+
package pro
22

33
import (
44
"context"

pkg/commands/cloud/run_test.go renamed to pkg/commands/pro/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cloud
1+
package pro
22

33
import (
44
"net/http"
File renamed without changes.

0 commit comments

Comments
 (0)