Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ux: Add outputs to wallet commands #9416

Merged
merged 1 commit into from
Oct 7, 2022
Merged

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented Oct 5, 2022

Adding command outputs to lotus wallet set-default and lotus wallet delete

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

Adding command outputs to `lotus wallet set-default` and `lotus wallet delete`
@rjan90 rjan90 requested a review from a team as a code owner October 5, 2022 07:50
@@ -260,6 +260,7 @@ var walletSetDefault = &cli.Command{
return err
}

fmt.Println("Default address set to:", addr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to have a space here?

Suggested change
fmt.Println("Default address set to:", addr)
fmt.Println("Default address set to: ", addr)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally had a space there, but during testing I got double spaces in the output, which was a bit surprising. This is what I currently get with no space:

phi:~$lotus wallet set-default t1lu7zszqwr7emsvjznr7utbsmsjia376focp2gvq
Default address set to: t1lu7zszqwr7emsvjznr7utbsmsjia376focp2gvq

@arajasek arajasek merged commit e57a27e into master Oct 7, 2022
@arajasek arajasek deleted the fix/wallet-cmd-outputs branch October 7, 2022 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants