-
Notifications
You must be signed in to change notification settings - Fork 330
waypoint user modify
command that will not modify a user returns help.
#2444
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.
LGTM just nitpick feedback on the error display
Co-authored-by: Clint <[email protected]>
In a related ux nitpick, I was really surprised to find that It feels to me like the username should be an argument, and |
That does sound really confusing. I support this proposal. |
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.
🎉
.changelog/2444.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note:improvement | |||
cli/user-modify: Return help on malformed command |
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 think our prefix is usually just cli:
and specify the "user modify" in the text
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.
The go tests might be failing from a flake, rerunning them before merge would be good! 👍🏻
Previous behavior:
Running
modify
with no flags returned success. This was confusing for people who expected this to return help text.Running
modify
with flags to specify (but not modify) a user also returneduser modification successful
, even though no real modifications were performed.As of this change,
waypoint user modify
without a flag that will do a modification (i.e.-new-username
or-display-name
) will return an error and help text, similar to other commands likeproject inspect
: