MCPcopy Index your code
hub / github.com/StackStorm/st2 / read

Method read

st2client/st2client/utils/interactive.py:81–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 raise validation.ValidationError(len(input), six.text_type(e))
80
81 def read(self):
82 message = self.template.format(self.prefix + self.name, **self.spec)
83 response = prompt(message, **self.options)
84
85 result = self.spec.get("default", None)
86
87 if response:
88 result = self._transform_response(response)
89
90 return result
91
92 def _construct_description(self):
93 if "description" in self.spec:

Callers 1

test_stringreaderMethod · 0.95

Calls 3

_transform_responseMethod · 0.95
formatMethod · 0.45
getMethod · 0.45

Tested by 1

test_stringreaderMethod · 0.76