sortinghat.cli package¶
Subpackages¶
- sortinghat.cli.client package
- sortinghat.cli.cmds package
- Submodules
- sortinghat.cli.cmds.add module
- sortinghat.cli.cmds.config module
- sortinghat.cli.cmds.countries module
- sortinghat.cli.cmds.enroll module
- sortinghat.cli.cmds.lock module
- sortinghat.cli.cmds.merge module
- sortinghat.cli.cmds.mv module
- sortinghat.cli.cmds.orgs module
- sortinghat.cli.cmds.profile module
- sortinghat.cli.cmds.rm module
- sortinghat.cli.cmds.show module
- sortinghat.cli.cmds.split module
- sortinghat.cli.cmds.withdraw module
- Module contents
Submodules¶
sortinghat.cli.sortinghat module¶
sortinghat.cli.utils module¶
- sortinghat.cli.utils.connect(client)[source]¶
Context for commands to handle connections.
Creates a context that will initialize and dispose a client connection. Client errors will be handled and raised as ClickException instances.
- Parameters
client – an initialized client
- sortinghat.cli.utils.display(template, nl=True, **kwargs)[source]¶
Render and display a template.
Giving the name of a template with the parameter template, this function will locate and render it using the arguments passed as keywords.
- Parameters
template – name of the template
nl – if set to True, it renders a newline afterwards
kwargs – list of attributes required to render the template