MCPcopy Index your code
hub / github.com/material-shell/material-shell / try_call

Function try_call

scripts/install.py:23–33  ·  view source on GitHub ↗

Tries to invoke a command line tool Returns false if the program exited with a non-zero error code or if the program failed to be executed.

(params)

Source from the content-addressed store, hash-verified

21
22
23def try_call(params):
24 '''
25 Tries to invoke a command line tool
26 Returns false if the program exited with a non-zero error code or if the program failed to be executed.
27 '''
28 try:
29 subprocess.check_call(params)
30 return True
31 except Exception as e:
32 print(e)
33 return False
34
35
36def window_manager() -> str:

Callers 1

installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected