Skip to content
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

Commands called via alias do not expose that fact. #568

Closed
tep opened this issue Nov 5, 2017 · 5 comments
Closed

Commands called via alias do not expose that fact. #568

tep opened this issue Nov 5, 2017 · 5 comments

Comments

@tep
Copy link
Contributor

tep commented Nov 5, 2017

When a command a) has defined aliases and it is b) invoked through one of those aliases, there is no way to determine whether the command was called by its primary name or one of the aliases.

@tep
Copy link
Contributor Author

tep commented Nov 5, 2017

This should be resolved by PR #567

@github-actions
Copy link

This issue is being marked as stale due to a long period of inactivity

@frederikhors
Copy link

Nope, @github-actions.

@marckhouzam
Copy link
Collaborator

@frederikhors I can confirm this now works thanks to #567. I've actually made use of it here

noDescriptions := (cmd.CalledAs() == ShellCompNoDescRequestCmd)

@johnSchnake
Copy link
Collaborator

Resolved via the mentioned PR; closing.

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

No branches or pull requests

4 participants