MCPcopy
hub / github.com/Gozargah/Marzban / get_default_shell

Function get_default_shell

marzban-cli.py:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def get_default_shell() -> Shells:
27 shell = os.environ.get('SHELL')
28 if shell:
29 shell = shell.split('/')[-1]
30 if shell in Shells.__members__:
31 return getattr(Shells, shell)
32 return Shells.bash
33
34
35@app_completion.command(help="Show completion for the specified shell, to copy or customize it.")

Callers 2

showFunction · 0.85
installFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected