MCPcopy
hub / github.com/catppuccin/catppuccin / get_user_command

Function get_user_command

samples/python1.py:44–52  ·  view source on GitHub ↗

Returns command that user specified for vcs_name

(vcs_name)

Source from the content-addressed store, hash-verified

42
43
44def get_user_command(vcs_name):
45 """
46 Returns command that user specified for vcs_name
47 """
48
49 try:
50 return [vcs['cmd'] for vcs in get_vcs_settings() if vcs.get('name') == vcs_name][0]
51 except IndexError:
52 return None
53
54
55def tfs_root(directory):

Callers 11

tfs_rootFunction · 0.85
git_diff_commandMethod · 0.85
svn_diff_commandMethod · 0.85
bzr_diff_commandMethod · 0.85
hg_diff_commandMethod · 0.85
tf_diff_commandMethod · 0.85
git_status_commandMethod · 0.85
svn_status_commandMethod · 0.85
bzr_status_commandMethod · 0.85
hg_status_commandMethod · 0.85
tf_status_commandMethod · 0.85

Calls 1

get_vcs_settingsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…