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

Ability to find a cmd and its path with name of alias #281

Open
Chaitanyabsprip opened this issue Nov 25, 2024 · 1 comment
Open

Ability to find a cmd and its path with name of alias #281

Chaitanyabsprip opened this issue Nov 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Chaitanyabsprip
Copy link
Contributor

I am trying to reference the "current" binary from an Exec call but then
I realized I can't know at what level I already am in the cmd tree. What
I mean is that I could either be the top level command or a subcmd from
a multicall or part of an isolated subtree.

Having the abillity to search for a cmd and its path will allow me to
check whether the subcmd I'm trying to run exists or not.

@rwxrob
Copy link
Owner

rwxrob commented Dec 8, 2024

Can you see if Cmd.Cmds or Cmd.Path helps with that? If you can find what you want using that we can codify that as a method.

@rwxrob rwxrob added the enhancement New feature or request label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants