odoo-cli-official 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo_cli/__init__.py +3 -0
- odoo_cli/__main__.py +8 -0
- odoo_cli/_vendor/__init__.py +7 -0
- odoo_cli/_vendor/click/LICENSE.txt +28 -0
- odoo_cli/_vendor/click/__init__.py +126 -0
- odoo_cli/_vendor/click/_compat.py +627 -0
- odoo_cli/_vendor/click/_termui_impl.py +929 -0
- odoo_cli/_vendor/click/_textwrap.py +188 -0
- odoo_cli/_vendor/click/_utils.py +36 -0
- odoo_cli/_vendor/click/_winconsole.py +297 -0
- odoo_cli/_vendor/click/core.py +3542 -0
- odoo_cli/_vendor/click/decorators.py +551 -0
- odoo_cli/_vendor/click/exceptions.py +347 -0
- odoo_cli/_vendor/click/formatting.py +315 -0
- odoo_cli/_vendor/click/globals.py +67 -0
- odoo_cli/_vendor/click/parser.py +533 -0
- odoo_cli/_vendor/click/py.typed +0 -0
- odoo_cli/_vendor/click/shell_completion.py +680 -0
- odoo_cli/_vendor/click/termui.py +941 -0
- odoo_cli/_vendor/click/testing.py +736 -0
- odoo_cli/_vendor/click/types.py +1309 -0
- odoo_cli/_vendor/click/utils.py +641 -0
- odoo_cli/cli/__init__.py +1 -0
- odoo_cli/cli/_click.py +18 -0
- odoo_cli/cli/context.py +104 -0
- odoo_cli/cli/main.py +50 -0
- odoo_cli/cli/output.py +26 -0
- odoo_cli/commands/__init__.py +39 -0
- odoo_cli/commands/config.py +55 -0
- odoo_cli/commands/db.py +39 -0
- odoo_cli/commands/init.py +152 -0
- odoo_cli/commands/module.py +27 -0
- odoo_cli/commands/repo.py +108 -0
- odoo_cli/commands/shell.py +27 -0
- odoo_cli/commands/start.py +58 -0
- odoo_cli/commands/test.py +32 -0
- odoo_cli/commands/update.py +23 -0
- odoo_cli/commands/venv.py +18 -0
- odoo_cli/commands/where.py +60 -0
- odoo_cli/commands/worktree.py +80 -0
- odoo_cli/core/__init__.py +5 -0
- odoo_cli/core/addons.py +51 -0
- odoo_cli/core/config_service.py +59 -0
- odoo_cli/core/database.py +107 -0
- odoo_cli/core/errors.py +110 -0
- odoo_cli/core/models.py +128 -0
- odoo_cli/core/modules.py +46 -0
- odoo_cli/core/odoo_bin.py +197 -0
- odoo_cli/core/odoo_conf.py +113 -0
- odoo_cli/core/paths.py +37 -0
- odoo_cli/core/postgres.py +105 -0
- odoo_cli/core/release.py +97 -0
- odoo_cli/core/repositories.py +259 -0
- odoo_cli/core/server.py +202 -0
- odoo_cli/core/shell.py +52 -0
- odoo_cli/core/target.py +109 -0
- odoo_cli/core/testing.py +77 -0
- odoo_cli/core/venvs.py +143 -0
- odoo_cli/core/workspace.py +72 -0
- odoo_cli/core/worktrees.py +455 -0
- odoo_cli/util/__init__.py +1 -0
- odoo_cli/util/git.py +171 -0
- odoo_cli/util/net.py +30 -0
- odoo_cli/util/process.py +89 -0
- odoo_cli_official-0.1.0.dist-info/METADATA +89 -0
- odoo_cli_official-0.1.0.dist-info/RECORD +69 -0
- odoo_cli_official-0.1.0.dist-info/WHEEL +4 -0
- odoo_cli_official-0.1.0.dist-info/entry_points.txt +2 -0
- odoo_cli_official-0.1.0.dist-info/licenses/LICENSE +21 -0
odoo_cli/__init__.py
ADDED
odoo_cli/__main__.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""Vendored third-party dependencies.
|
|
2
|
+
|
|
3
|
+
Upstream source distributions ship `click` here so the bash installer only
|
|
4
|
+
needs a Python interpreter. Distribution packages (Debian/Ubuntu) may delete
|
|
5
|
+
this copy and depend on the system `python3-click` instead; the import switch
|
|
6
|
+
happens in `odoo_cli.cli._click`, the only module that imports from here.
|
|
7
|
+
"""
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright 2014 Pallets
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are
|
|
5
|
+
met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
21
|
+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
22
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
23
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
24
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
25
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
26
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
27
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Click is a simple Python module inspired by the stdlib optparse to make
|
|
3
|
+
writing command line scripts fun. Unlike other modules, it's based
|
|
4
|
+
around a simple API that does not come with too much magic and is
|
|
5
|
+
composable.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from .core import Argument as Argument
|
|
11
|
+
from .core import Command as Command
|
|
12
|
+
from .core import CommandCollection as CommandCollection
|
|
13
|
+
from .core import Context as Context
|
|
14
|
+
from .core import Group as Group
|
|
15
|
+
from .core import Option as Option
|
|
16
|
+
from .core import Parameter as Parameter
|
|
17
|
+
from .core import ParameterSource as ParameterSource
|
|
18
|
+
from .decorators import argument as argument
|
|
19
|
+
from .decorators import command as command
|
|
20
|
+
from .decorators import confirmation_option as confirmation_option
|
|
21
|
+
from .decorators import group as group
|
|
22
|
+
from .decorators import help_option as help_option
|
|
23
|
+
from .decorators import make_pass_decorator as make_pass_decorator
|
|
24
|
+
from .decorators import option as option
|
|
25
|
+
from .decorators import pass_context as pass_context
|
|
26
|
+
from .decorators import pass_obj as pass_obj
|
|
27
|
+
from .decorators import password_option as password_option
|
|
28
|
+
from .decorators import version_option as version_option
|
|
29
|
+
from .exceptions import Abort as Abort
|
|
30
|
+
from .exceptions import BadArgumentUsage as BadArgumentUsage
|
|
31
|
+
from .exceptions import BadOptionUsage as BadOptionUsage
|
|
32
|
+
from .exceptions import BadParameter as BadParameter
|
|
33
|
+
from .exceptions import ClickException as ClickException
|
|
34
|
+
from .exceptions import FileError as FileError
|
|
35
|
+
from .exceptions import MissingParameter as MissingParameter
|
|
36
|
+
from .exceptions import NoSuchCommand as NoSuchCommand
|
|
37
|
+
from .exceptions import NoSuchOption as NoSuchOption
|
|
38
|
+
from .exceptions import UsageError as UsageError
|
|
39
|
+
from .formatting import HelpFormatter as HelpFormatter
|
|
40
|
+
from .formatting import wrap_text as wrap_text
|
|
41
|
+
from .globals import get_current_context as get_current_context
|
|
42
|
+
from .termui import clear as clear
|
|
43
|
+
from .termui import confirm as confirm
|
|
44
|
+
from .termui import echo_via_pager as echo_via_pager
|
|
45
|
+
from .termui import edit as edit
|
|
46
|
+
from .termui import get_pager_file as get_pager_file
|
|
47
|
+
from .termui import getchar as getchar
|
|
48
|
+
from .termui import launch as launch
|
|
49
|
+
from .termui import pause as pause
|
|
50
|
+
from .termui import progressbar as progressbar
|
|
51
|
+
from .termui import prompt as prompt
|
|
52
|
+
from .termui import secho as secho
|
|
53
|
+
from .termui import style as style
|
|
54
|
+
from .termui import unstyle as unstyle
|
|
55
|
+
from .types import BOOL as BOOL
|
|
56
|
+
from .types import Choice as Choice
|
|
57
|
+
from .types import DateTime as DateTime
|
|
58
|
+
from .types import File as File
|
|
59
|
+
from .types import FLOAT as FLOAT
|
|
60
|
+
from .types import FloatRange as FloatRange
|
|
61
|
+
from .types import INT as INT
|
|
62
|
+
from .types import IntRange as IntRange
|
|
63
|
+
from .types import ParamType as ParamType
|
|
64
|
+
from .types import Path as Path
|
|
65
|
+
from .types import STRING as STRING
|
|
66
|
+
from .types import Tuple as Tuple
|
|
67
|
+
from .types import UNPROCESSED as UNPROCESSED
|
|
68
|
+
from .types import UUID as UUID
|
|
69
|
+
from .utils import echo as echo
|
|
70
|
+
from .utils import format_filename as format_filename
|
|
71
|
+
from .utils import get_app_dir as get_app_dir
|
|
72
|
+
from .utils import get_binary_stream as get_binary_stream
|
|
73
|
+
from .utils import get_text_stream as get_text_stream
|
|
74
|
+
from .utils import open_file as open_file
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def __getattr__(name: str) -> object:
|
|
78
|
+
import warnings
|
|
79
|
+
|
|
80
|
+
if name == "BaseCommand":
|
|
81
|
+
from .core import _BaseCommand
|
|
82
|
+
|
|
83
|
+
warnings.warn(
|
|
84
|
+
"'BaseCommand' is deprecated and will be removed in Click 9.0. Use"
|
|
85
|
+
" 'Command' instead.",
|
|
86
|
+
DeprecationWarning,
|
|
87
|
+
stacklevel=2,
|
|
88
|
+
)
|
|
89
|
+
return _BaseCommand
|
|
90
|
+
|
|
91
|
+
if name == "MultiCommand":
|
|
92
|
+
from .core import _MultiCommand
|
|
93
|
+
|
|
94
|
+
warnings.warn(
|
|
95
|
+
"'MultiCommand' is deprecated and will be removed in Click 9.0. Use"
|
|
96
|
+
" 'Group' instead.",
|
|
97
|
+
DeprecationWarning,
|
|
98
|
+
stacklevel=2,
|
|
99
|
+
)
|
|
100
|
+
return _MultiCommand
|
|
101
|
+
|
|
102
|
+
if name == "OptionParser":
|
|
103
|
+
from .parser import _OptionParser
|
|
104
|
+
|
|
105
|
+
warnings.warn(
|
|
106
|
+
"'OptionParser' is deprecated and will be removed in Click 9.0. The"
|
|
107
|
+
" old parser is available in 'optparse'.",
|
|
108
|
+
DeprecationWarning,
|
|
109
|
+
stacklevel=2,
|
|
110
|
+
)
|
|
111
|
+
return _OptionParser
|
|
112
|
+
|
|
113
|
+
if name == "__version__":
|
|
114
|
+
import importlib.metadata
|
|
115
|
+
import warnings
|
|
116
|
+
|
|
117
|
+
warnings.warn(
|
|
118
|
+
"The '__version__' attribute is deprecated and will be removed in"
|
|
119
|
+
" Click 9.1. Use feature detection or"
|
|
120
|
+
" 'importlib.metadata.version(\"click\")' instead.",
|
|
121
|
+
DeprecationWarning,
|
|
122
|
+
stacklevel=2,
|
|
123
|
+
)
|
|
124
|
+
return importlib.metadata.version("click")
|
|
125
|
+
|
|
126
|
+
raise AttributeError(name)
|