Skip to content

Commit

Permalink
Use github.com/smallstep/cli-utils in CLI main
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Sep 30, 2024
1 parent fbc29ce commit 7a54e1c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions cmd/step/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,24 @@ import (
"strings"
"time"

"github.com/urfave/cli"

"github.com/smallstep/certificates/ca"
"github.com/smallstep/cli-utils/command"
"github.com/smallstep/cli-utils/step"
"github.com/smallstep/cli-utils/ui"
"go.step.sm/crypto/jose"
"go.step.sm/crypto/pemutil"

"github.com/smallstep/cli-utils/usage"
"github.com/smallstep/cli/command/version"
"github.com/smallstep/cli/internal/plugin"
"github.com/smallstep/cli/utils"
"github.com/urfave/cli"
"go.step.sm/cli-utils/command"
"go.step.sm/cli-utils/step"
"go.step.sm/cli-utils/ui"
"go.step.sm/cli-utils/usage"
"go.step.sm/crypto/jose"
"go.step.sm/crypto/pemutil"

// Enabled cas interfaces.
_ "github.com/smallstep/certificates/cas/cloudcas"
_ "github.com/smallstep/certificates/cas/softcas"
_ "github.com/smallstep/certificates/cas/stepcas"

// Enabled commands
_ "github.com/smallstep/cli/command/api"
Expand All @@ -35,11 +42,6 @@ import (
_ "github.com/smallstep/cli/command/oauth"
_ "github.com/smallstep/cli/command/path"
_ "github.com/smallstep/cli/command/ssh"

// Enabled cas interfaces.
_ "github.com/smallstep/certificates/cas/cloudcas"
_ "github.com/smallstep/certificates/cas/softcas"
_ "github.com/smallstep/certificates/cas/stepcas"
)

// Version is set by an LDFLAG at build time representing the git tag or commit
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ require (
github.com/stretchr/testify v1.9.0
github.com/urfave/cli v1.22.15
go.mozilla.org/pkcs7 v0.9.0
go.step.sm/cli-utils v0.9.0
go.step.sm/crypto v0.51.2
go.step.sm/linkedca v0.22.1
golang.org/x/crypto v0.27.0
Expand Down Expand Up @@ -135,6 +134,7 @@ require (
go.opentelemetry.io/otel v1.29.0 // indirect
go.opentelemetry.io/otel/metric v1.29.0 // indirect
go.opentelemetry.io/otel/trace v1.29.0 // indirect
go.step.sm/cli-utils v0.9.0 // indirect
golang.org/x/exp v0.0.0-20240318143956-a85f2c67cd81 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
Expand Down

0 comments on commit 7a54e1c

Please sign in to comment.