MCPcopy Create free account
hub / github.com/StackStorm/st2 / _construct_template

Method _construct_template

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

Source from the content-addressed store, hash-verified

128 )
129
130 def _construct_template(self):
131 self.template = "{0} (boolean)"
132
133 if "default" in self.spec:
134 self.template += " [{}]: ".format(self.spec.get("default") and "y" or "n")
135 else:
136 self.template += ": "
137
138 def _transform_response(self, response):
139 if response.lower() in POSITIVE_BOOLEAN:

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected