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

feat(wallet): add help for wallet cli commands #4162

Merged
merged 3 commits into from
Jun 6, 2022

Conversation

stringhandler
Copy link
Collaborator

Description

Converts all wallet commands to use clap instead, providing help when called with --help

  • Note: Also commented out the Script mode. I think we can remove this now as it's not used
  • Note: Deleted all of the previous arg passing logic.
  • Note: Deleted previous register_asset and other asset-y commands

Motivation and Context

This is IMHO a much cleaner and extendible way of calling commands and seeing what the required fields are. It also allows defaults to be added (e.g. default, overrideable messages)

How Has This Been Tested?

manually

sdbondi
sdbondi previously approved these changes Jun 6, 2022
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

Much better - just some minor 🖇️

Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

Tested by manually running a command and works

@aviator-app aviator-app bot added the mq-failed label Jun 6, 2022
@sdbondi sdbondi removed the mq-failed label Jun 6, 2022
@aviator-app aviator-app bot merged commit 859b7d3 into tari-project:development Jun 6, 2022
@stringhandler stringhandler deleted the st-wallet-cli branch June 6, 2022 10:59
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.

2 participants