Skip to content

Commit

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

Fixes #1698

RELEASE_NOTES=[ENHANCEMENT] UTF-8 emojis
RELEASE_NOTES=[BUGFIX] Ask passphrase upon key generation


Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz committed Jan 18, 2021
1 parent 87fb184 commit 2d1b875
Show file tree
Hide file tree
Showing 36 changed files with 489 additions and 450 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -41,7 +41,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
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
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
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

0 comments on commit 2d1b875

Please sign in to comment.