Skip to content

Commit

Permalink
UX update
Browse files Browse the repository at this point in the history
Streamline command output, add unicode icons and as for passphrase
during onboarding.

Fixes gopasspw#1698

RELEASE_NOTES=[ENHANCEMENT] UTF-8 emojis

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz committed Jan 17, 2021
1 parent 327d4b9 commit 0496982
Show file tree
Hide file tree
Showing 34 changed files with 432 additions and 394 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/urfave/cli/v2 v2.2.0
github.com/xrash/smetrics v0.0.0-20200730060457-89a2a8a1fb0b // indirect
golang.org/x/crypto v0.0.0-20200930160638-afb6bcd081ae
golang.org/x/net v0.0.0-20201021035429-f5854403a974
golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect
golang.org/x/sys v0.0.0-20201024232916-9f70ab9862d5
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
Expand Down
2 changes: 1 addition & 1 deletion internal/action/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func newMock(ctx context.Context, u *gptest.Unit) (*Action, error) {
fs := flag.NewFlagSet("default", flag.ContinueOnError)
c := cli.NewContext(cli.NewApp(), fs, nil)
c.Context = ctx
if err := act.Initialized(c); err != nil {
if err := act.IsInitialized(c); err != nil {
return nil, err
}
return act, nil
Expand Down
4 changes: 2 additions & 2 deletions internal/action/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *Action) clone(ctx context.Context, repo, mount, path string) error {
if path == "" {
path = config.PwStoreDir(mount)
}
inited, err := s.Store.Initialized(ctxutil.WithGitInit(ctx, false))
inited, err := s.Store.IsInitialized(ctxutil.WithGitInit(ctx, false))
if err != nil {
return ExitError(ExitUnknown, err, "Failed to initialized stores: %s", err)
}
Expand Down Expand Up @@ -113,7 +113,7 @@ func (s *Action) cloneAddMount(ctx context.Context, mount, path string) error {
return nil
}

inited, err := s.Store.Initialized(ctx)
inited, err := s.Store.IsInitialized(ctx)
if err != nil {
return ExitError(ExitUnknown, err, "Failed to initialize store: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/action/clone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestCloneBackendIsStoredForMount(t *testing.T) {
require.NotNil(t, act)

c := gptest.CliCtx(ctx, t)
require.NoError(t, act.Initialized(c))
require.NoError(t, act.IsInitialized(c))

repo := aGitRepo(ctx, u, t, "my-project")

Expand Down
Loading

0 comments on commit 0496982

Please sign in to comment.