peerplays.cli.decorators module¶
-
peerplays.cli.decorators.chain(f)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of PeerPlays.
-
peerplays.cli.decorators.configfile(f)¶ This decorator will parse a configuration file in YAML format and store the dictionary in
ctx.blockchain.config
-
peerplays.cli.decorators.customchain(**kwargsChain)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of Peerplays. But in contrast to @chain, this is a decorator that expects parameters that are directed right toPeerPlays().… code-block::python
@main.command() @click.option(”–worker”, default=None) @click.pass_context @customchain(foo=”bar”) @unlock def list(ctx, worker):
print(ctx.obj)
-
peerplays.cli.decorators.offline(f)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of PeerPlays withoffline=True.
-
peerplays.cli.decorators.offlineChain(f)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of PeerPlays withoffline=True.
-
peerplays.cli.decorators.online(f)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of PeerPlays.
-
peerplays.cli.decorators.onlineChain(f)¶ This decorator allows you to access
ctx.peerplayswhich is an instance of PeerPlays.
-
peerplays.cli.decorators.unlock(f)¶ This decorator will unlock the wallet by either asking for a passphrase or taking the environmental variable
UNLOCK
-
peerplays.cli.decorators.unlockWallet(f)¶ This decorator will unlock the wallet by either asking for a passphrase or taking the environmental variable
UNLOCK
-
peerplays.cli.decorators.verbose(f)¶ Add verbose flags and add logging handlers