MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / input_proj_id

Method input_proj_id

client/node/common/userinput.py:119–139  ·  view source on GitHub ↗

proj_id 输入 :return:

(self)

Source from the content-addressed store, hash-verified

117 return None
118
119 def input_proj_id(self):
120 """
121 proj_id 输入
122 :return:
123 """
124 def check_func(proj_id):
125 if proj_id.isdigit():
126 return True
127 else:
128 return False
129 try:
130 proj_id = SmartInput().input(prompt="项目编号:",
131 check_func=check_func,
132 retry_prompt="输入有误,项目编号应该是一个数字!请重新输入:")
133 return int(proj_id)
134 except InputRetryError as err:
135 logger.warning(str(err))
136 return None
137 except EOFError as err:
138 logger.warning(str(err))
139 return None
140
141 def input_source_dir(self):
142 """

Callers

nothing calls this directly

Calls 3

SmartInputClass · 0.90
inputMethod · 0.80
warningMethod · 0.80

Tested by

no test coverage detected