mantis-cli 14.5.2__tar.gz → 14.5.3__tar.gz
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.
- {mantis-cli-14.5.2/mantis_cli.egg-info → mantis-cli-14.5.3}/PKG-INFO +1 -1
- mantis-cli-14.5.3/mantis/__init__.py +1 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/helpers.py +13 -1
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/mantis.tpl +3 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3/mantis_cli.egg-info}/PKG-INFO +1 -1
- mantis-cli-14.5.2/mantis/__init__.py +0 -1
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/LICENSE +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/MANIFEST.in +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/README.md +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/__main__.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/command_line.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/crypto.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/environment.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/extensions/__init__.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/extensions/django.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/extensions/nginx.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/extensions/postgres.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/logic.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis/managers.py +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis_cli.egg-info/SOURCES.txt +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis_cli.egg-info/requires.txt +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/setup.cfg +0 -0
- {mantis-cli-14.5.2 → mantis-cli-14.5.3}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '14.5.3'
|
|
@@ -84,6 +84,16 @@ class CLI(object):
|
|
|
84
84
|
def step(index, total, text, end='\n', return_value=False):
|
|
85
85
|
return CLI.print_or_return(text=f'[{index}/{total}] {text}', color=Colors.YELLOW, end=end, return_value=return_value)
|
|
86
86
|
|
|
87
|
+
@staticmethod
|
|
88
|
+
def link(uri, label=None):
|
|
89
|
+
if label is None:
|
|
90
|
+
label = uri
|
|
91
|
+
parameters = ''
|
|
92
|
+
|
|
93
|
+
# OSC 8 ; params ; URI ST <name> OSC 8 ;; ST
|
|
94
|
+
escape_mask = '\033]8;{};{}\033\\{}\033]8;;\033\\'
|
|
95
|
+
|
|
96
|
+
return escape_mask.format(parameters, uri, label)
|
|
87
97
|
|
|
88
98
|
def random_string(n=10):
|
|
89
99
|
import random
|
|
@@ -187,6 +197,7 @@ def load_config(config_file):
|
|
|
187
197
|
CLI.error(f"Failed to load config from file {config_file}: {e}")
|
|
188
198
|
|
|
189
199
|
|
|
200
|
+
|
|
190
201
|
def check_config(config):
|
|
191
202
|
# Load config template file
|
|
192
203
|
current_directory = dirname(abspath(__file__))
|
|
@@ -200,4 +211,5 @@ def check_config(config):
|
|
|
200
211
|
config_keys_only = list(filter(lambda x: not x.startswith('connections.'), config_keys_only))
|
|
201
212
|
|
|
202
213
|
if config_keys_only:
|
|
203
|
-
CLI.
|
|
214
|
+
template_link = CLI.link('https://github.com/PragmaticMates/mantis-cli/blob/master/mantis/mantis.tpl', 'template')
|
|
215
|
+
CLI.error(f"Config file validation failed. Unknown config keys: {config_keys_only}. Check {template_link} for available attributes.")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '14.5.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|