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

orb-slot-ctrl: Prettify handling of arguments from user #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlexKaravaev
Copy link
Contributor

Noticed that parsing of status command is a bit clunky, so improved it a bit. I wanted to also add tests for this in this module, but writing tests for cli will require some more refactoring for this file, so I didn't bothered

orb-slot-ctrl/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@TheButlah TheButlah left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I also agree that using a dedicated type makes more sense. Two small requested changes and should be good to go.

orb-slot-ctrl/src/lib.rs Outdated Show resolved Hide resolved
@AlexKaravaev
Copy link
Contributor Author

Thanks for the contribution! I also agree that using a dedicated type makes more sense. Two small requested changes and should be good to go.

I've also added clap parsing for Slot

@TheButlah
Copy link
Collaborator

@AlexKaravaev can you close or bring up to date?

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