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.
generate_completions
Auxiliary function to generate provided shell completions.
kaching
Fun police go away
parse_token_pair
Auxiliary function to parse provided string into a tokens pair.
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.