Module: options
amount_option(f)
Decorator to add a amount option to a command.
Source code in src/infernet_client/cli/options.py
input_option(f)
Decorator to add an input option to a command.
Source code in src/infernet_client/cli/options.py
output_option(f)
Decorator to add an output option to a command.
Source code in src/infernet_client/cli/options.py
output_result(result, output)
Output result to the specified output.
If the result is a string, it will be output as is. Otherwise, it will be output as formatted JSON.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
result |
Any
|
Result to output |
required |
output |
IO[str]
|
Output stream |
required |
Source code in src/infernet_client/cli/options.py
private_key_option(f)
Decorator to add a private key option to a command.
Source code in src/infernet_client/cli/options.py
router_url_option(f)
Decorator to add a router URL option to a command.
Source code in src/infernet_client/cli/options.py
rpc_url_option(f)
Decorator to add an rpc url option to a command.
Source code in src/infernet_client/cli/options.py
token_option(f)
Decorator to add a token address option to a command.
Source code in src/infernet_client/cli/options.py
url_option(f)
Decorator to add a URL option to a command.
Source code in src/infernet_client/cli/options.py
wallet_option(f)
Decorator to add a wallet address option to a command.