Added shell.which
This commit is contained in:
parent
67187ff974
commit
865c18dfa3
|
@ -254,3 +254,10 @@ def latest(cmd: str) -> str:
|
||||||
LATEST_CACHE[cmd] = chosen
|
LATEST_CACHE[cmd] = chosen
|
||||||
|
|
||||||
return chosen
|
return chosen
|
||||||
|
|
||||||
|
|
||||||
|
def which(cmd: str) -> str | None:
|
||||||
|
"""
|
||||||
|
Find the path of a command
|
||||||
|
"""
|
||||||
|
return shutil.which(cmd)
|
||||||
|
|
Loading…
Reference in a new issue