mirror of
https://github.com/smallstep/cli.git
synced 2025-04-19 10:42:15 +03:00
Use github.com/smallstep/cli-utils
and reorder imports
This commit is contained in:
parent
bec3072658
commit
de85fd0cef
@ -12,7 +12,7 @@ should exist within its own package if possible. For example, `version` and
|
||||
Any package used by a command but does not contain explicit business logic
|
||||
directly related to the command should exist in the top-level of this
|
||||
repository. For example, the `github.com/smallstep/cli/flags` and
|
||||
`go.step.sm/cli-utils/errs` package are used by many different commands and
|
||||
`github.com/smallstep/cli-utils/errs` package are used by many different commands and
|
||||
contain functionality for defining flags and creating/manipulating errors.
|
||||
|
||||
### Adding a Command
|
||||
@ -70,8 +70,8 @@ There are three packages which contain functionality to make writing commands ea
|
||||
|
||||
- `github.com/smallstep/cli/flags`
|
||||
- `github.com/smallstep/cli/prompts`
|
||||
- `go.step.sm/cli-utils/errs`
|
||||
- `go.step.sm/cli-utils/usage`
|
||||
- `github.com/smallstep/cli-utils/errs`
|
||||
- `github.com/smallstep/cli-utils/usage`
|
||||
|
||||
The usage package is used to extend the default documentation provided by
|
||||
`urfave/cli` by enabling us to document arguments, whether they are optional or
|
||||
|
@ -1,9 +1,11 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/smallstep/cli/command/api/token"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli/command/api/token"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -12,8 +12,9 @@ import (
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
)
|
||||
|
||||
func createCommand() cli.Command {
|
||||
|
@ -8,9 +8,11 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -1,9 +1,11 @@
|
||||
package beta
|
||||
|
||||
import (
|
||||
"github.com/smallstep/cli/command/ca"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli/command/ca"
|
||||
)
|
||||
|
||||
// init creates and registers the ca command
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
adminAPI "github.com/smallstep/certificates/authority/admin/api"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
)
|
||||
|
@ -8,9 +8,10 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
)
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
|
@ -5,12 +5,14 @@ import (
|
||||
"os"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
adminAPI "github.com/smallstep/certificates/authority/admin/api"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
func addCommand() cli.Command {
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
|
@ -5,11 +5,13 @@ import (
|
||||
"os"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
func listCommand() cli.Command {
|
||||
|
@ -1,10 +1,12 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
func removeCommand() cli.Command {
|
||||
|
@ -5,12 +5,14 @@ import (
|
||||
"os"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
adminAPI "github.com/smallstep/certificates/authority/admin/api"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
func updateCommand() cli.Command {
|
||||
|
@ -3,11 +3,13 @@ package ca
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
func bootstrapCommand() cli.Command {
|
||||
|
@ -1,12 +1,14 @@
|
||||
package ca
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/acme"
|
||||
"github.com/smallstep/cli/command/ca/admin"
|
||||
"github.com/smallstep/cli/command/ca/policy"
|
||||
"github.com/smallstep/cli/command/ca/provisioner"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
)
|
||||
|
||||
// init creates and registers the ca command
|
||||
|
@ -5,15 +5,17 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/token"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/step"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
func certificateCommand() cli.Command {
|
||||
|
@ -6,16 +6,18 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/api"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
type flowType int
|
||||
|
@ -5,11 +5,13 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
func healthCommand() cli.Command {
|
||||
|
@ -14,21 +14,20 @@ import (
|
||||
|
||||
"github.com/manifoldco/promptui"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/cas/apiv1"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/kms"
|
||||
_ "go.step.sm/crypto/kms/azurekms" // enable azurekms
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/step"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/kms"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
// Enable azurekms
|
||||
_ "go.step.sm/crypto/kms/azurekms"
|
||||
)
|
||||
|
||||
func initCommand() cli.Command {
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
"github.com/urfave/cli"
|
||||
"google.golang.org/protobuf/encoding/protojson"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/internal/command"
|
||||
)
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -5,13 +5,15 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/command"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
// RemoveCommand returns the policy remove subcommand.
|
||||
|
@ -6,7 +6,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
|
@ -5,14 +5,16 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/policy/policycontext"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/command"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
// ViewCommand returns the policy view subcommand
|
||||
|
@ -13,15 +13,17 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/sliceutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/sliceutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func addCommand() cli.Command {
|
||||
|
@ -4,11 +4,12 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/smallstep/certificates/authority"
|
||||
"github.com/smallstep/certificates/authority/config"
|
||||
"github.com/smallstep/certificates/authority/provisioner"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
|
@ -4,10 +4,12 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func getEncryptedKeyCommand() cli.Command {
|
||||
|
@ -5,10 +5,12 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func listCommand() cli.Command {
|
||||
|
@ -8,16 +8,18 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
nebula "github.com/slackhq/nebula/cert"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/authority/config"
|
||||
"github.com/smallstep/certificates/authority/provisioner"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/command/ca/provisioner/webhook"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
// Command returns the jwk subcommand.
|
||||
|
@ -1,10 +1,11 @@
|
||||
package provisioner
|
||||
|
||||
import (
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func removeCommand() cli.Command {
|
||||
|
@ -11,16 +11,19 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/sliceutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/sliceutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func updateCommand() cli.Command {
|
||||
|
@ -3,11 +3,13 @@ package webhook
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
func addCommand() cli.Command {
|
||||
|
@ -1,9 +1,11 @@
|
||||
package webhook
|
||||
|
||||
import (
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func removeCommand() cli.Command {
|
||||
|
@ -4,12 +4,14 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/linkedca"
|
||||
)
|
||||
|
||||
func updateCommand() cli.Command {
|
||||
|
@ -5,13 +5,15 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/authority/config"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/linkedca"
|
||||
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
)
|
||||
|
||||
// Command returns the webhook subcommand.
|
||||
|
@ -10,15 +10,17 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/keyutil"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func rekeyCertificateCommand() cli.Command {
|
||||
|
@ -20,21 +20,23 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/api"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/token"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/smallstep/cli/utils/sysutils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
)
|
||||
|
||||
func renewCertificateCommand() cli.Command {
|
||||
|
@ -13,20 +13,22 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/api"
|
||||
"github.com/smallstep/certificates/authority/provisioner"
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
"golang.org/x/crypto/ocsp"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@ -6,14 +6,15 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/ca"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func rootCommand() cli.Command {
|
||||
|
@ -5,15 +5,17 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/api"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/token"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
func signCertificateCommand() cli.Command {
|
||||
|
@ -5,16 +5,18 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certificates/api"
|
||||
"github.com/smallstep/certificates/pki"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/smallstep/cli/utils/cautils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
|
||||
func tokenCommand() cli.Command {
|
||||
|
@ -5,12 +5,14 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
)
|
||||
|
||||
func bundleCommand() cli.Command {
|
||||
|
@ -2,7 +2,8 @@ package certificate
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
)
|
||||
|
||||
// Command returns the cli.Command for jwt and related subcommands.
|
||||
|
@ -7,16 +7,18 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/cryptoutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/keyutil"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/cryptoutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,12 +9,14 @@ import (
|
||||
_ "crypto/sha1"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/fingerprint"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func fingerprintCommand() cli.Command {
|
||||
|
@ -7,12 +7,14 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
)
|
||||
|
||||
func formatCommand() cli.Command {
|
||||
|
@ -9,13 +9,15 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certinfo"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
zx509 "github.com/smallstep/zcrypto/x509"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
zx509 "github.com/smallstep/zcrypto/x509"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
func inspectCommand() cli.Command {
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/certinfo"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/truststore"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
|
@ -4,13 +4,15 @@ import (
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
||||
func keyCommand() cli.Command {
|
||||
|
@ -6,11 +6,13 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
zx509 "github.com/smallstep/zcrypto/x509"
|
||||
"github.com/smallstep/zlint"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func lintCommand() cli.Command {
|
||||
|
@ -9,10 +9,12 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
const defaultPercentUsedThreshold = 66
|
||||
|
@ -5,15 +5,17 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"software.sslmate.com/src/go-pkcs12"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
"software.sslmate.com/src/go-pkcs12"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func p12Command() cli.Command {
|
||||
|
@ -12,14 +12,15 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/cryptoutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
)
|
||||
|
||||
const customIntermediateTemplate = `{
|
||||
|
@ -11,12 +11,14 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"golang.org/x/crypto/ocsp"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/x509util"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/crlutil"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/x509util"
|
||||
"golang.org/x/crypto/ocsp"
|
||||
)
|
||||
|
||||
func verifyCommand() cli.Command {
|
||||
|
@ -4,10 +4,12 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -2,7 +2,8 @@ package context
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
)
|
||||
|
||||
// init creates and registers the ca command
|
||||
|
@ -5,10 +5,12 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/step"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func currentCommand() cli.Command {
|
||||
|
@ -3,10 +3,12 @@ package context
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/step"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func listCommand() cli.Command {
|
||||
|
@ -6,13 +6,15 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/fileutil"
|
||||
"go.step.sm/cli-utils/step"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/fileutil"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func removeCommand() cli.Command {
|
||||
|
@ -1,12 +1,14 @@
|
||||
package context
|
||||
|
||||
import (
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/step"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func selectCommand() cli.Command {
|
||||
|
@ -2,7 +2,8 @@ package crl
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
)
|
||||
|
||||
// init creates and registers the crl command
|
||||
|
@ -14,14 +14,16 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/crlutil"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/x509util"
|
||||
)
|
||||
|
||||
func inspectCommand() cli.Command {
|
||||
|
@ -7,14 +7,16 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func changePassCommand() cli.Command {
|
||||
|
@ -1,6 +1,10 @@
|
||||
package crypto
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
|
||||
"github.com/smallstep/cli/command/crypto/hash"
|
||||
"github.com/smallstep/cli/command/crypto/jose"
|
||||
"github.com/smallstep/cli/command/crypto/jwe"
|
||||
@ -13,8 +17,6 @@ import (
|
||||
"github.com/smallstep/cli/command/crypto/otp"
|
||||
"github.com/smallstep/cli/command/crypto/rand"
|
||||
"github.com/smallstep/cli/command/crypto/winpe"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -18,9 +18,11 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
type hashConstructor func() hash.Hash
|
||||
|
@ -4,13 +4,14 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func decryptCommand() cli.Command {
|
||||
|
@ -5,12 +5,14 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
func encryptCommand() cli.Command {
|
||||
|
@ -9,15 +9,17 @@ import (
|
||||
"strconv"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/keyutil"
|
||||
"go.step.sm/crypto/randutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,11 +8,13 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils/sysutils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/utils/sysutils"
|
||||
)
|
||||
|
||||
func keysetCommand() cli.Command {
|
||||
|
@ -8,7 +8,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
|
@ -8,11 +8,13 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
func inspectCommand() cli.Command {
|
||||
|
@ -9,7 +9,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
)
|
||||
|
@ -4,11 +4,13 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
func verifyCommand() cli.Command {
|
||||
|
@ -8,10 +8,12 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func inspectCommand() cli.Command {
|
||||
|
@ -10,12 +10,14 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"go.step.sm/crypto/randutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
)
|
||||
|
||||
func signCommand() cli.Command {
|
||||
|
@ -7,11 +7,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
)
|
||||
|
||||
func verifyCommand() cli.Command {
|
||||
|
@ -4,11 +4,13 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/internal/kdf"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
// Command returns the cli.Command for kdf and related subcommands.
|
||||
|
@ -13,13 +13,15 @@ import (
|
||||
_ "crypto/sha1"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/fingerprint"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func fingerprintCommand() cli.Command {
|
||||
|
@ -11,14 +11,16 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func formatCommand() cli.Command {
|
||||
|
@ -9,11 +9,13 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func inspectCommand() cli.Command {
|
||||
|
@ -4,14 +4,16 @@ import (
|
||||
"encoding/pem"
|
||||
"os"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/keyutil"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func publicCommand() cli.Command {
|
||||
|
@ -13,11 +13,13 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
var hashAlgFlag = cli.StringFlag{
|
||||
|
@ -10,11 +10,13 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func verifyCommand() cli.Command {
|
||||
|
@ -2,15 +2,17 @@ package crypto
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/keyutil"
|
||||
"go.step.sm/crypto/pemutil"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func createKeyPairCommand() cli.Command {
|
||||
|
@ -6,10 +6,12 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"golang.org/x/crypto/nacl/auth"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func authCommand() cli.Command {
|
||||
|
@ -6,13 +6,15 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"golang.org/x/crypto/nacl/box"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"golang.org/x/crypto/nacl/box"
|
||||
)
|
||||
|
||||
func boxCommand() cli.Command {
|
||||
|
@ -5,10 +5,12 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"golang.org/x/crypto/nacl/secretbox"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func secretboxCommand() cli.Command {
|
||||
|
@ -6,13 +6,15 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"golang.org/x/crypto/nacl/sign"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/ui"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/cli-utils/ui"
|
||||
"golang.org/x/crypto/nacl/sign"
|
||||
)
|
||||
|
||||
func signCommand() cli.Command {
|
||||
|
@ -8,11 +8,13 @@ import (
|
||||
|
||||
"github.com/pquerna/otp"
|
||||
"github.com/pquerna/otp/totp"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
func generateCommand() cli.Command {
|
||||
|
@ -11,10 +11,12 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/pquerna/otp"
|
||||
"github.com/pquerna/otp/totp"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
)
|
||||
|
||||
func verifyCommand() cli.Command {
|
||||
|
@ -10,8 +10,10 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"go.step.sm/crypto/fingerprint"
|
||||
"go.step.sm/crypto/randutil"
|
||||
)
|
||||
|
@ -12,7 +12,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
"go.mozilla.org/pkcs7"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
)
|
||||
|
||||
// Command returns the winpe subcommand.
|
||||
|
@ -16,11 +16,12 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
|
||||
"github.com/smallstep/cli/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -20,14 +20,16 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/randutil"
|
||||
|
||||
"github.com/smallstep/cli/exec"
|
||||
"github.com/smallstep/cli/flags"
|
||||
"github.com/smallstep/cli/utils"
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/errs"
|
||||
"go.step.sm/crypto/jose"
|
||||
"go.step.sm/crypto/randutil"
|
||||
)
|
||||
|
||||
// These are the OAuth2.0 client IDs from the Step CLI. This application is
|
||||
|
@ -4,8 +4,9 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
"go.step.sm/cli-utils/command"
|
||||
"go.step.sm/cli-utils/step"
|
||||
|
||||
"github.com/smallstep/cli-utils/command"
|
||||
"github.com/smallstep/cli-utils/step"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user