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

Method _construct_template

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

Source from the content-addressed store, hash-verified

308 return result
309
310 def _construct_template(self):
311 self.template = "{0} (comma-separated list)"
312
313 if "default" in self.spec:
314 self.template += " [{default}]: ".format(
315 default=",".join(self.spec.get("default"))
316 )
317 else:
318 self.template += ": "
319
320 def _transform_response(self, response):
321 return [item.strip() for item in response.split(",")]

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected