Module cli_util

Module cli_util 

Source
Expand description

CLI utility functions

Functionsยง

append_or_print
Auxiliary function to print or insert provided messages to given buffer reference. If a channel sender is provided, the messages are send to that instead.
build_subtree ๐Ÿ”’
Recursively build subtree for a DarkTree
check_cycles ๐Ÿ”’
display_mining_config
Auxiliary function to display the parts of a mining configuration.
generate_completions
Auxiliary function to generate provided shell completions.
kaching
Fun police go away
parse_calls_from_input
Auxiliary function to parse base64 encoded contract calls from provided input or fallback to stdin if its empty.
parse_calls_from_stdin
Auxiliary function to parse base64 encoded contract calls from stdin.
parse_mining_config_from_input
Auxiliary function to parse a base64 encoded mining configuration from provided input or fallback to stdin if its empty.
parse_mining_config_from_stdin
Auxiliary function to parse a base64 encoded mining configuration from stdin.
parse_token_pair
Auxiliary function to parse provided string into a tokens pair.
parse_tree
Auxiliary function to parse a contract call mapping.
parse_tx_from_input
Auxiliary function to parse a base64 encoded transaction from provided input or fallback to stdin if its empty.
parse_tx_from_stdin
Auxiliary function to parse a base64 encoded transaction from stdin.
parse_value_pair
Auxiliary function to parse provided string into a values pair.
print_output
Auxiliary function to print provided string buffer.
to_leaf ๐Ÿ”’
Cast ContractCallImport to ContractCallLeaf
tx_from_calls_mapped
Build a Transaction given a slice of calls and their mapping