mantis-cli 9.0.2__tar.gz → 9.0.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-9.0.2/mantis_cli.egg-info → mantis-cli-9.0.3}/PKG-INFO +1 -1
- mantis-cli-9.0.3/mantis/__init__.py +1 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/logic.py +7 -1
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/managers.py +6 -2
- {mantis-cli-9.0.2 → mantis-cli-9.0.3/mantis_cli.egg-info}/PKG-INFO +1 -1
- mantis-cli-9.0.2/mantis/__init__.py +0 -1
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/.gitignore +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/LICENSE +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/MANIFEST.in +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/README.md +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/TODO +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/__main__.py +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/command_line.py +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/extensions.py +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis/helpers.py +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis_cli.egg-info/SOURCES.txt +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/setup.cfg +0 -0
- {mantis-cli-9.0.2 → mantis-cli-9.0.3}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '9.0.3'
|
|
@@ -88,6 +88,12 @@ def main():
|
|
|
88
88
|
# check params
|
|
89
89
|
params = parse_args()
|
|
90
90
|
|
|
91
|
+
# version info
|
|
92
|
+
version_info = f'Mantis (v{VERSION})'
|
|
93
|
+
|
|
94
|
+
if params['commands'] == ['--version']:
|
|
95
|
+
exit(version_info)
|
|
96
|
+
|
|
91
97
|
if len(params['commands']) == 0:
|
|
92
98
|
CLI.error('Missing commands')
|
|
93
99
|
|
|
@@ -129,7 +135,7 @@ def main():
|
|
|
129
135
|
else:
|
|
130
136
|
host_intro = ''
|
|
131
137
|
|
|
132
|
-
heading = f'
|
|
138
|
+
heading = f'{version_info} '\
|
|
133
139
|
f'{environment_intro}'\
|
|
134
140
|
f'{host_intro}'\
|
|
135
141
|
f'mode: {Colors.GREEN}{manager.mode}{Colors.ENDC}, '\
|
|
@@ -163,7 +163,8 @@ class DefaultManager(object):
|
|
|
163
163
|
loaded_environment = self.load_environment(env_file) # .env
|
|
164
164
|
|
|
165
165
|
if decrypted_environment is None:
|
|
166
|
-
|
|
166
|
+
env_file_encrypted = f'{env_file}.encrypted'
|
|
167
|
+
CLI.error(f'Encrypted environment {env_file_encrypted} is empty!')
|
|
167
168
|
|
|
168
169
|
if loaded_environment is None:
|
|
169
170
|
CLI.error(f'Loaded environment {env_file} is empty!')
|
|
@@ -301,9 +302,12 @@ class DefaultManager(object):
|
|
|
301
302
|
|
|
302
303
|
encrypted_lines = self.read_environment(env_file_encrypted)
|
|
303
304
|
|
|
304
|
-
if
|
|
305
|
+
if encrypted_lines is None:
|
|
305
306
|
return None
|
|
306
307
|
|
|
308
|
+
if not encrypted_lines:
|
|
309
|
+
return {}
|
|
310
|
+
|
|
307
311
|
decrypted_lines = []
|
|
308
312
|
decrypted_env = {}
|
|
309
313
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '9.0.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
|