-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(macros): add SetOptions { profile }
command
#1404
feat(macros): add SetOptions { profile }
command
#1404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short and sweet, plugged in nicely at all the right places.
I'd remove strum
and implement the conversion to string manually.
If it were a binary I wouldn't nitpick, but wouldn't like the dep to propagate to all users of the sdk because of "debug" and "release". Besides an extra dep, our version choice (whatever it is) might also cause headaches to any present strum
dep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish there was an easy way to test this (this - i.e. that debug is going to use the debug build). An e2e would require compiling both debug and release builds, and that might be overkill.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! I would add 2 ui tests. One where we use Option
with something other than profile
and another one when profile
is something other than debug
or release
packages/fuels-macros/src/setup_program_test/parsing/commands/set_options.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job -- nice UI tests, too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Close #1360.
The command is optional, and defaults to
release
profile.Checklist