__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from uaclient import event_logger, messages
from uaclient.api.u.pro.security.status.reboot_required.v1 import (
_reboot_required,
)
from uaclient.cli.commands import ProCommand
from uaclient.cli.parser import HelpCategory
event = event_logger.get_event_logger()
def action_reboot_required(args, *, cfg, **kwargs):
result = _reboot_required(cfg)
event.info(result.reboot_required)
return 0
def action_system(args, *, cfg, **kwargs):
# Avoiding a circular import
from uaclient.cli import get_parser
get_parser().print_help_for_command("system")
reboot_required_subcommand = ProCommand(
"reboot-required",
help=messages.CLI_SYSTEM_REBOOT_REQUIRED,
description=messages.CLI_SYSTEM_REBOOT_REQUIRED_DESC,
action=action_reboot_required,
preserve_description=True,
)
system_command = ProCommand(
"system",
help=messages.CLI_ROOT_SYSTEM,
description=messages.CLI_SYSTEM_DESC,
action=action_system,
help_category=HelpCategory.QUICKSTART,
help_position=4,
subcommands=[reboot_required_subcommand],
)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 9.28 KB | 0644 |
|
| api.py | File | 2.4 KB | 0644 |
|
| attach.py | File | 5.48 KB | 0644 |
|
| auto_attach.py | File | 958 B | 0644 |
|
| cli_util.py | File | 8.08 KB | 0644 |
|
| collect_logs.py | File | 1.6 KB | 0644 |
|
| commands.py | File | 3.68 KB | 0644 |
|
| config.py | File | 10.72 KB | 0644 |
|
| cve.py | File | 6.73 KB | 0644 |
|
| cves.py | File | 3.78 KB | 0644 |
|
| detach.py | File | 3.38 KB | 0644 |
|
| disable.py | File | 10.65 KB | 0644 |
|
| enable.py | File | 18.81 KB | 0644 |
|
| fix.py | File | 28.63 KB | 0644 |
|
| formatter.py | File | 8.75 KB | 0644 |
|
| help.py | File | 1.67 KB | 0644 |
|
| parser.py | File | 2.72 KB | 0644 |
|
| refresh.py | File | 2.42 KB | 0644 |
|
| security_status.py | File | 2.79 KB | 0644 |
|
| status.py | File | 2.37 KB | 0644 |
|
| system.py | File | 1.05 KB | 0644 |
|