Skip to content

Commit

Permalink
Merge pull request #141 from smallstep/rename-module
Browse files Browse the repository at this point in the history
Rename module
  • Loading branch information
hslatman authored Sep 10, 2024
2 parents ca735cc + 2e5c1ab commit a2826a9
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 18 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# cli-utils

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Build Status](https://travis-ci.com/smallstep/crypto.svg?branch=master)](https://travis-ci.com/smallstep/cli-utils)
[![Documentation](https://godoc.org/go.step.sm/crypto?status.svg)](https://pkg.go.dev/mod/go.step.sm/cli-utils)
[![Build Status](https://travis-ci.com/smallstep/cli-utils.svg?branch=main)](https://travis-ci.com/smallstep/cli-utils)
[![Documentation](https://godoc.org/github.com/smallstep/cli-utils?status.svg)](https://pkg.go.dev/mod/github.com/smallstep/cli-utils)

Cli-utils is a collection of packages used in [smallstep](https://smallstep.com) products. See:
Cli-utils is a collection of packages used in [Smallstep](https://smallstep.com) products. See:

* [step](https://github.com/smallstep/cli): A zero trust swiss army knife for
working with X509, OAuth, JWT, OATH OTP, etc.
Expand All @@ -19,5 +19,5 @@ Cli-utils is a collection of packages used in [smallstep](https://smallstep.com)
To add this to a project just run:

```sh
go get go.step.sm/cli-utils
go get github.com/smallstep/cli-utils
```
5 changes: 3 additions & 2 deletions command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"os"

"github.com/urfave/cli"
"go.step.sm/cli-utils/step"
"go.step.sm/cli-utils/usage"

"github.com/smallstep/cli-utils/step"
"github.com/smallstep/cli-utils/usage"
)

var cmds []cli.Command
Expand Down
5 changes: 3 additions & 2 deletions command/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 3 additions & 2 deletions fileutil/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import (
"time"

"github.com/pkg/errors"
"go.step.sm/cli-utils/command"
"go.step.sm/cli-utils/ui"

"github.com/smallstep/cli-utils/command"
"github.com/smallstep/cli-utils/ui"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module go.step.sm/cli-utils
module github.com/smallstep/cli-utils

go 1.22

Expand Down
5 changes: 3 additions & 2 deletions step/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (

"github.com/pkg/errors"
"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"
)

// IgnoreEnvVar is a value added to a flag EnvVar to avoid the use of
Expand Down
3 changes: 2 additions & 1 deletion token/provision/provision.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package provision

import (
"go.step.sm/cli-utils/token"
"go.step.sm/crypto/jose"

"github.com/smallstep/cli-utils/token"
)

// Token defines a one time use token that is intended to be exchanged
Expand Down
4 changes: 3 additions & 1 deletion token/provision/provision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import (
"time"

"github.com/stretchr/testify/assert"
"go.step.sm/cli-utils/token"

"go.step.sm/crypto/jose"
"go.step.sm/crypto/pemutil"

"github.com/smallstep/cli-utils/token"
)

func withFixedTime(tok *Token, t time.Time) {
Expand Down
3 changes: 2 additions & 1 deletion usage/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"time"

"github.com/urfave/cli"
"go.step.sm/cli-utils/errs"

"github.com/smallstep/cli-utils/errs"
)

func httpHelpAction(ctx *cli.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion usage/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
"unicode"

"github.com/urfave/cli"
md "go.step.sm/cli-utils/pkg/blackfriday"

md "github.com/smallstep/cli-utils/pkg/blackfriday"
)

var sectionRe = regexp.MustCompile(`(?m:^##)`)
Expand Down
2 changes: 1 addition & 1 deletion usage/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/mgutz/ansi"

md "go.step.sm/cli-utils/pkg/blackfriday"
md "github.com/smallstep/cli-utils/pkg/blackfriday"
)

// Render renders the given data with a custom markdown renderer.
Expand Down

0 comments on commit a2826a9

Please sign in to comment.