iocage_cli package¶
Submodules¶
iocage_cli.activate module¶
activate module for the cli.
iocage_cli.chroot module¶
chroot module for the cli.
iocage_cli.clean module¶
clean module for the cli.
iocage_cli.clone module¶
clone module for the cli.
-
iocage_cli.clone.
validate_count
(ctx, param, value)¶ Takes a string, removes the commas and returns an int.
iocage_cli.console module¶
console module for the cli.
iocage_cli.create module¶
create module for the cli.
-
iocage_cli.create.
validate_count
(ctx, param, value)¶ Takes a string, removes the commas and returns an int.
iocage_cli.debug module¶
debug module for the cli.
iocage_cli.destroy module¶
destroy module for the cli.
-
iocage_cli.destroy.
child_test
(zfs, iocroot, name, _type, force=False, recursive=False)¶ Tests for dependent children
iocage_cli.df module¶
df module for the cli.
iocage_cli.exec module¶
exec module for the cli.
iocage_cli.export module¶
export module for the cli.
iocage_cli.fetch module¶
fetch module for the cli.
-
iocage_cli.fetch.
validate_count
(ctx, param, value)¶ Takes a string, removes the commas and returns an int.
iocage_cli.fstab module¶
fstab module for the cli.
iocage_cli.get module¶
get module for the cli.
iocage_cli.import module¶
import module for the cli.
iocage_cli.list module¶
list module for the cli.
iocage_cli.migrate module¶
migrate module for the cli.
iocage_cli.pkg module¶
pkg module for the cli.
iocage_cli.rename module¶
rename module for the cli.
iocage_cli.restart module¶
restart module for the cli.
iocage_cli.rollback module¶
rollback module for the cli.
iocage_cli.set module¶
set module for the cli.
iocage_cli.snaplist module¶
snaplist module for the cli.
iocage_cli.snapremove module¶
snapremove module for the cli.
iocage_cli.snapshot module¶
snapshot module for the cli.
iocage_cli.start module¶
start module for the cli.
iocage_cli.stop module¶
stop module for the cli.
iocage_cli.update module¶
update module for the cli.
iocage_cli.upgrade module¶
upgrade module for the cli.
Module contents¶
The main CLI for ioc.
-
class
iocage_cli.
IOCageCLI
(name=None, invoke_without_command=False, no_args_is_help=None, subcommand_metavar=None, chain=False, result_callback=None, **attrs)¶ Bases:
click.core.MultiCommand
Iterates in the ‘cli’ directory and will load any module’s cli definition.
-
get_command
(ctx, name)¶ Given a context and a command name, this returns a
Command
object if it exists or returns None.
-
list_commands
(ctx)¶ Returns a list of subcommand names in the order they should appear.
-
-
class
iocage_cli.
InfoHandler
(level=0)¶ Bases:
logging.Handler
-
emit
(record)¶ Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
-
-
iocage_cli.
print_version
(ctx, param, value)¶ Prints the version and then exits.