✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.101
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfig//cl_config_arg_parse.py
# -*- coding: utf-8 -*-

# Command line arguments parser for cloudlinux-config utility

# cloudlinux-config Utility to check/set different Cloudlinux parameters
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

from docopt import DocoptExit, docopt
from schema import And, Or, Schema, SchemaError

from clcommon.cpapi import is_reseller


def parse_cloudlinux_config_opts(argv, _is_json_need=False):
    # program name
    prog_name = "cloudlinux-config"

    docstring = f"""Utility to get/set any Cloudlinux config

    Usage:
        {prog_name} [get] [--json] [--for-reseller <str>]
        {prog_name} [set] [--json] --data <str> [--for-reseller <str>]
        {prog_name} [set] [--json] --reset-inodes-limit
        {prog_name} (-h | --help)

    Options:
        --json                  Return data in JSON format.
        --data <str>            Set parameters from JSON str
        --reset-inodes-limit    Reset inodes limits
        --for-reseller <str>    Set/Get configuration options for specific reseller (only lve-stats)
        -h, --help              Show this help message and exit
    """

    try:
        args = docopt(docstring, argv)
    except DocoptExit:
        s_error_string = 'ERROR: Invalid parameter passed'
        if not _is_json_need:
            s_error_string += "\n\n" + docstring
        return False, s_error_string
    if not args["get"] and not args["set"]:
        args["get"] = True

    # uncomment this for add full edit mode
    # gov_int_list = And(Use(lambda x:x.split(",")), lambda x:len(x) == 4,
    #                    Use(lambda x:map(int, x)))
    s = Schema({
        "set": bool,
        "get": bool,
        "--json": And(bool, lambda x: x, error="use --json option, other modes currently unsupported"),
        "--data": Or(None, str),
        "--for-reseller": And(Or(None, str), lambda x: x is None or is_reseller(x), error="non-existent reseller name"),
        "--reset-inodes-limit": bool,
        "--help": bool,
    })

    try:
        args = s.validate(args)
        status = True
    except SchemaError as e:
        args = str(e)
        status = False

    return status, args


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jun 2026 7.01 AM
root / root
0755
__pycache__
--
23 Jun 2026 7.07 AM
root / root
0755
__init__.py
0.343 KB
3 Jun 2026 12.08 PM
root / root
0644
cagefs_statistics_config.py
3.26 KB
3 Jun 2026 12.08 PM
root / root
0644
cl_config_arg_parse.py
2.227 KB
3 Jun 2026 12.08 PM
root / root
0644
clconfig_utils.py
2.839 KB
3 Jun 2026 12.08 PM
root / root
0644
config.py
23.643 KB
3 Jun 2026 12.08 PM
root / root
0640
db_governor_lib.py
15.188 KB
3 Jun 2026 12.08 PM
root / root
0644
db_info_lib.py
3.634 KB
3 Jun 2026 12.08 PM
root / root
0644
lve_stats2_lib.py
10.633 KB
3 Jun 2026 12.08 PM
root / root
0644
lve_stats2_reseller_lib.py
11.047 KB
3 Jun 2026 12.08 PM
root / root
0644
ui_config_lib.py
4.735 KB
3 Jun 2026 12.08 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF