diff options
author | Steve Moyer <smoyer1@selesy.com> | 2023-01-03 08:37:21 -0500 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2023-01-03 08:37:21 -0500 |
commit | 7601e79d2b60315e259f36e96d7bfdcc92d3fcba (patch) | |
tree | e84c2c8f33d7610ea83da9a8c2ed774a8da0fa48 /commands/user | |
parent | 344438b9cb216dd878221600071d3ac8093ad34b (diff) | |
parent | 3915d2b76e17ae7058510d3b4cd91b24786bb526 (diff) | |
download | git-bug-7601e79d2b60315e259f36e96d7bfdcc92d3fcba.tar.gz |
deps: fix merge conflicts in dependencies
Diffstat (limited to 'commands/user')
-rw-r--r-- | commands/user/user.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/commands/user/user.go b/commands/user/user.go index 9a1e477c..a9a45726 100644 --- a/commands/user/user.go +++ b/commands/user/user.go @@ -1,14 +1,12 @@ package usercmd import ( - "encoding/json" "fmt" "github.com/spf13/cobra" - json2 "github.com/MichaelMure/git-bug/commands/cmdjson" - "github.com/MichaelMure/git-bug/cache" + "github.com/MichaelMure/git-bug/commands/cmdjson" "github.com/MichaelMure/git-bug/commands/completion" "github.com/MichaelMure/git-bug/commands/execenv" "github.com/MichaelMure/git-bug/util/colors" @@ -78,12 +76,10 @@ func userDefaultFormatter(env *execenv.Env, users []*cache.IdentityExcerpt) erro } func userJsonFormatter(env *execenv.Env, users []*cache.IdentityExcerpt) error { - jsonUsers := make([]json2.Identity, len(users)) + jsonUsers := make([]cmdjson.Identity, len(users)) for i, user := range users { - jsonUsers[i] = json2.NewIdentityFromExcerpt(user) + jsonUsers[i] = cmdjson.NewIdentityFromExcerpt(user) } - jsonObject, _ := json.MarshalIndent(jsonUsers, "", " ") - env.Out.Printf("%s\n", jsonObject) - return nil + return env.Out.PrintJSON(jsonUsers) } |