Skip to content

chore: Set up iota to describe steps instead of using ints - #124

Merged
dbolson merged 2 commits into
mainfrom
more-explicit-setup-steps
Apr 3, 2024
Merged

chore: Set up iota to describe steps instead of using ints#124
dbolson merged 2 commits into
mainfrom
more-explicit-setup-steps

Conversation

@dbolson

@dbolson dbolson commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Using iota should be easier to read than magic numbers for looking at which step we're on in the setup command.

case key.Matches(msg, keys.Back):
// if showing SDK instructions, let the user go back to choose a different SDK
if m.currentStep == 2 {
if m.currentStep == stepShowSDKInstructions {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2 is wrong. It should be 3 which is the show SDK instructions page.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yay the iotas were nice for this

@dbolson
dbolson requested a review from k3llymariee April 3, 2024 22:52
case key.Matches(msg, keys.Back):
// if showing SDK instructions, let the user go back to choose a different SDK
if m.currentStep == 2 {
if m.currentStep == stepShowSDKInstructions {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yay the iotas were nice for this

@dbolson
dbolson merged commit ba74393 into main Apr 3, 2024
@dbolson
dbolson deleted the more-explicit-setup-steps branch April 3, 2024 22:53
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