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

Method _read_field

st2client/st2client/utils/interactive.py:446–462  ·  view source on GitHub ↗
(self, field)

Source from the content-addressed store, hash-verified

444 return result
445
446 def _read_field(self, field):
447 spec = self.schema[field]
448
449 reader = None
450
451 for Reader in self.readers:
452 if Reader.condition(spec):
453 reader = Reader(field, spec, prefix=self.prefix)
454 break
455
456 if not reader:
457 raise ReaderNotImplemented("No reader for the field spec")
458
459 try:
460 return reader.read()
461 except KeyboardInterrupt:
462 raise DialogInterrupted()
463
464
465class Question(StringReader):

Callers 1

initiate_dialogMethod · 0.95

Calls 4

DialogInterruptedClass · 0.85
conditionMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected