Skip to content

Commit 2c3d42f

Browse files
committed
Use github.com/smallstep/cli-utils and reorder imports
1 parent 33edf23 commit 2c3d42f

134 files changed

Lines changed: 661 additions & 443 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

command/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ should exist within its own package if possible. For example, `version` and
1212
Any package used by a command but does not contain explicit business logic
1313
directly related to the command should exist in the top-level of this
1414
repository. For example, the `github.com/smallstep/cli/flags` and
15-
`go.step.sm/cli-utils/errs` package are used by many different commands and
15+
`github.com/smallstep/cli-utils/errs` package are used by many different commands and
1616
contain functionality for defining flags and creating/manipulating errors.
1717

1818
### Adding a Command
@@ -70,8 +70,8 @@ There are three packages which contain functionality to make writing commands ea
7070

7171
- `github.com/smallstep/cli/flags`
7272
- `github.com/smallstep/cli/prompts`
73-
- `go.step.sm/cli-utils/errs`
74-
- `go.step.sm/cli-utils/usage`
73+
- `github.com/smallstep/cli-utils/errs`
74+
- `github.com/smallstep/cli-utils/usage`
7575

7676
The usage package is used to extend the default documentation provided by
7777
`urfave/cli` by enabling us to document arguments, whether they are optional or

command/api/api.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package api
22

33
import (
4-
"github.com/smallstep/cli/command/api/token"
54
"github.com/urfave/cli"
6-
"go.step.sm/cli-utils/command"
5+
6+
"github.com/smallstep/cli-utils/command"
7+
8+
"github.com/smallstep/cli/command/api/token"
79
)
810

911
func init() {

command/api/token/create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import (
1212

1313
"github.com/google/uuid"
1414
"github.com/urfave/cli"
15-
"go.step.sm/cli-utils/errs"
16-
"go.step.sm/cli-utils/ui"
15+
16+
"github.com/smallstep/cli-utils/errs"
17+
"github.com/smallstep/cli-utils/ui"
1718
)
1819

1920
func createCommand() cli.Command {

command/base64/base64.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ import (
88
"strings"
99

1010
"github.com/pkg/errors"
11-
"github.com/smallstep/cli/utils"
1211
"github.com/urfave/cli"
13-
"go.step.sm/cli-utils/command"
12+
13+
"github.com/smallstep/cli-utils/command"
14+
15+
"github.com/smallstep/cli/utils"
1416
)
1517

1618
func init() {

command/beta/beta.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package beta
22

33
import (
4-
"github.com/smallstep/cli/command/ca"
54
"github.com/urfave/cli"
6-
"go.step.sm/cli-utils/command"
5+
6+
"github.com/smallstep/cli-utils/command"
7+
8+
"github.com/smallstep/cli/command/ca"
79
)
810

911
// init creates and registers the ca command

command/ca/acme/eab/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"github.com/pkg/errors"
88
"github.com/urfave/cli"
99

10-
"go.step.sm/cli-utils/errs"
11-
1210
adminAPI "github.com/smallstep/certificates/authority/admin/api"
11+
"github.com/smallstep/cli-utils/errs"
12+
1313
"github.com/smallstep/cli/flags"
1414
"github.com/smallstep/cli/utils/cautils"
1515
)

command/ca/acme/eab/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import (
88

99
"github.com/pkg/errors"
1010
"github.com/urfave/cli"
11-
"go.step.sm/cli-utils/errs"
1211

1312
"github.com/smallstep/certificates/ca"
13+
"github.com/smallstep/cli-utils/errs"
14+
1415
"github.com/smallstep/cli/flags"
1516
"github.com/smallstep/cli/utils/cautils"
1617
)

command/ca/acme/eab/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/pkg/errors"
77
"github.com/urfave/cli"
88

9-
"go.step.sm/cli-utils/errs"
9+
"github.com/smallstep/cli-utils/errs"
1010

1111
"github.com/smallstep/cli/flags"
1212
"github.com/smallstep/cli/utils/cautils"

command/ca/admin/add.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ import (
55
"os"
66
"text/tabwriter"
77

8+
"github.com/urfave/cli"
9+
810
adminAPI "github.com/smallstep/certificates/authority/admin/api"
11+
"github.com/smallstep/cli-utils/errs"
12+
"go.step.sm/linkedca"
13+
914
"github.com/smallstep/cli/flags"
1015
"github.com/smallstep/cli/utils/cautils"
11-
"github.com/urfave/cli"
12-
"go.step.sm/cli-utils/errs"
13-
"go.step.sm/linkedca"
1416
)
1517

1618
func addCommand() cli.Command {

command/ca/admin/admin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"errors"
55
"fmt"
66

7-
"github.com/smallstep/certificates/ca"
87
"github.com/urfave/cli"
98

10-
"go.step.sm/cli-utils/errs"
11-
"go.step.sm/cli-utils/ui"
9+
"github.com/smallstep/certificates/ca"
10+
"github.com/smallstep/cli-utils/errs"
11+
"github.com/smallstep/cli-utils/ui"
1212
"go.step.sm/linkedca"
1313
)
1414

0 commit comments

Comments
 (0)