Skip to content

[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

Merged
merged 1 commit into from
Oct 22, 2021
Merged

[Uid] Allow use autocompletion #43639

merged 1 commit into from
Oct 22, 2021

Conversation

StaffNowa
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets #43594
License MIT
Doc PR -

Adding Bash completion for following commands:
ulid:generate
uuid-genereate

@carsonbot carsonbot added this to the 5.4 milestone Oct 21, 2021
@derrabus derrabus changed the title * Allow use autocompletion Allow use autocompletion Oct 21, 2021
@derrabus derrabus added the Uid label Oct 21, 2021
@carsonbot carsonbot changed the title Allow use autocompletion [Uid] Allow use autocompletion Oct 21, 2021
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')));
Copy link
Member

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.

Copy link
Contributor Author

@StaffNowa StaffNowa Oct 30, 2021

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

@fabpot
Copy link
Member

fabpot commented Oct 22, 2021

Thank you @StaffNowa.

@fabpot fabpot merged commit ae3f404 into symfony:5.4 Oct 22, 2021
@StaffNowa StaffNowa deleted the feature/uid-completion branch October 30, 2021 18:33
}
}

private function getAvailableFormatOptions(): array
Copy link
Member

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

This was referenced Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants