-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Uid] Allow use autocompletion #43639
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
Conversation
if (\in_array($formatOption, $this->getAvailableFormatOptions())) { | ||
$format = 'to'.ucfirst($formatOption); | ||
} else { | ||
$io->error(sprintf('Invalid format "%s", did you mean "base32", "base58" or "rfc4122"?', $input->getOption('format'))); |
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 error message could use the list.
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.
Thanks, I made PR #43849
Thank you @StaffNowa. |
} | ||
} | ||
|
||
private function getAvailableFormatOptions(): array |
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.
replaced by a const in d0f6b98
Adding Bash completion for following commands:
ulid:generate
uuid-genereate