pywebexec 2.1.15__py3-none-any.whl → 2.1.16__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.
- pywebexec/pywebexec.py +1 -1
- pywebexec/static/css/form.css +1 -0
- pywebexec/static/js/executables.js +2 -0
- pywebexec/static/js/script.js +1 -1
- pywebexec/static/jsonform/deps/jsv.js +3700 -0
- pywebexec/templates/index.html +1 -0
- pywebexec/version.py +2 -2
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/METADATA +1 -1
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/RECORD +13 -12
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/LICENSE +0 -0
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/WHEEL +0 -0
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/entry_points.txt +0 -0
- {pywebexec-2.1.15.dist-info → pywebexec-2.1.16.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -871,7 +871,7 @@ def run_dynamic_command(cmd):
|
|
871
871
|
params += f"{prefix} "
|
872
872
|
continue
|
873
873
|
if isinstance(value, dict) or convert_values.get(param, None) == "json":
|
874
|
-
value = shlex.quote(json.dumps(value))
|
874
|
+
value = shlex.quote(json.dumps(value, indent=2, sort_keys=False))
|
875
875
|
elif convert_values.get(param, None) == "quote":
|
876
876
|
value = shlex.quote(str(value))
|
877
877
|
else:
|
pywebexec/static/css/form.css
CHANGED
@@ -267,6 +267,8 @@ paramsInput.addEventListener('focus', () => {
|
|
267
267
|
createSchemaForm($('#schemaForm'), gExecutables[currentCmd].schema, async function (errors, values) {
|
268
268
|
if (errors) {
|
269
269
|
console.log(errors);
|
270
|
+
alert(errors[0].message);
|
271
|
+
return false;
|
270
272
|
} else {
|
271
273
|
const commandName = commandInput.value;
|
272
274
|
fitAddon.fit();
|
pywebexec/static/js/script.js
CHANGED
@@ -262,7 +262,7 @@ async function viewOutput(command_id) {
|
|
262
262
|
const commandInfo = document.getElementById('commandInfo');
|
263
263
|
const command = `${data.command.replace(/^\.\//, '')} ${data.params.join(' ')}`;
|
264
264
|
setCommandStatus(data.status)
|
265
|
-
commandInfo.
|
265
|
+
commandInfo.innerHTML = command;
|
266
266
|
commandInfo.setAttribute('title', command);
|
267
267
|
if (data.command == 'term')
|
268
268
|
terminal.options.cursorInactiveStyle = 'outline';
|