MCPcopy
hub / github.com/raiden-network/raiden / parse

Method parse

raiden/utils/cli.py:489–502  ·  view source on GitHub ↗

Parses more values to provide to clicks 'ctx.params' based the value of a parameter value - the value of the parameter for `self.name` that was parsed by click source - the ParameterSource where the value of `self.name` was set by click. ctx - The current click `Context`

(self, ctx: Context, value: Any, source: ParameterSource)

Source from the content-addressed store, hash-verified

487
488 @abstractmethod
489 def parse(self, ctx: Context, value: Any, source: ParameterSource) -> Dict[str, Any]:
490 """Parses more values to provide to clicks 'ctx.params' based the value of a parameter
491
492 value - the value of the parameter for `self.name` that was parsed by click
493 source - the ParameterSource where the value of `self.name` was set by click.
494 ctx - The current click `Context`
495
496 This method should return a dictionary that maps the "internal" parameter name
497 to the parameter values as read in by the parser.
498
499 In order to get the internal name from the parameter name as defined by the parser,
500 the `self.get_internal_name()` method should be called.
501 """
502 pass
503
504
505class ConfigParser(Parser):

Callers 2

invokeMethod · 0.45
geth_to_cmdFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected