1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

Initial step path contexts commit

- move config and command packages to cli-utils
This commit is contained in:
max furman
2021-07-22 23:26:02 -07:00
parent deb91a4ac4
commit 860c213b97
59 changed files with 327 additions and 216 deletions

View File

@@ -9,8 +9,6 @@ import (
"github.com/pkg/errors"
"github.com/smallstep/certificates/ca"
"github.com/smallstep/certificates/pki"
"github.com/smallstep/cli/command"
"github.com/smallstep/cli/config"
"github.com/smallstep/cli/crypto/pemutil"
"github.com/smallstep/cli/errs"
"github.com/smallstep/cli/flags"
@@ -19,6 +17,8 @@ import (
"github.com/smallstep/cli/utils/cautils"
"github.com/smallstep/truststore"
"github.com/urfave/cli"
"go.step.sm/cli-utils/command"
"go.step.sm/cli-utils/step"
)
func bootstrapCommand() cli.Command {
@@ -99,7 +99,7 @@ func bootstrapAction(ctx *cli.Context) error {
fingerprint := strings.TrimSpace(ctx.String("fingerprint"))
team := ctx.String("team")
rootFile := pki.GetRootCAPath()
configFile := filepath.Join(config.StepPath(), "config", "defaults.json")
configFile := filepath.Join(step.Path(), "config", "defaults.json")
redirectURL := ctx.String("redirect-url")
switch {