MCPcopy Create free account
hub / github.com/ElementsProject/elements / arg_to_cli

Function arg_to_cli

test/functional/test_framework/test_node.py:685–693  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

683
684
685def arg_to_cli(arg):
686 if isinstance(arg, bool):
687 return str(arg).lower()
688 elif arg is None:
689 return 'null'
690 elif isinstance(arg, dict) or isinstance(arg, list):
691 return json.dumps(arg, default=EncodeDecimal)
692 else:
693 return str(arg)
694
695
696class TestNodeCLI():

Callers 1

send_cliMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected