mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-07-01 05:23:54 +08:00
修复 argv 变量名没有统一导致不能加参数的 bug
This commit is contained in:
parent
fb50613449
commit
6e437d2e64
@ -89,47 +89,47 @@ programs = {
|
|||||||
},
|
},
|
||||||
cmd: {
|
cmd: {
|
||||||
bin: '',
|
bin: '',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'bat'
|
ext: 'bat'
|
||||||
},
|
},
|
||||||
powershell: {
|
powershell: {
|
||||||
bin: 'powershell',
|
bin: 'powershell',
|
||||||
agrv: '-NoProfile -File',
|
argv: '-NoProfile -File',
|
||||||
ext: 'ps1'
|
ext: 'ps1'
|
||||||
},
|
},
|
||||||
python: {
|
python: {
|
||||||
bin: 'python',
|
bin: 'python',
|
||||||
agrv: '-u',
|
argv: '-u',
|
||||||
ext: 'py'
|
ext: 'py'
|
||||||
},
|
},
|
||||||
javascript: {
|
javascript: {
|
||||||
bin: 'node',
|
bin: 'node',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'js'
|
ext: 'js'
|
||||||
},
|
},
|
||||||
ruby: {
|
ruby: {
|
||||||
bin: 'ruby',
|
bin: 'ruby',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'rb'
|
ext: 'rb'
|
||||||
},
|
},
|
||||||
php: {
|
php: {
|
||||||
bin: 'php',
|
bin: 'php',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'php'
|
ext: 'php'
|
||||||
},
|
},
|
||||||
lua: {
|
lua: {
|
||||||
bin: 'lua',
|
bin: 'lua',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'lua'
|
ext: 'lua'
|
||||||
},
|
},
|
||||||
perl: {
|
perl: {
|
||||||
bin: 'perl',
|
bin: 'perl',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: 'pl'
|
ext: 'pl'
|
||||||
},
|
},
|
||||||
custom: {
|
custom: {
|
||||||
bin: '',
|
bin: '',
|
||||||
agrv: '',
|
argv: '',
|
||||||
ext: ''
|
ext: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -307,7 +307,7 @@ $("#options").on('click', '.editBtn', function () {
|
|||||||
if (iconame != `${mode}.png`) $('#iconame').val(iconame);
|
if (iconame != `${mode}.png`) $('#iconame').val(iconame);
|
||||||
if (mode == 'custom') {
|
if (mode == 'custom') {
|
||||||
$('#custombin').show().val(data.customOptions.bin);
|
$('#custombin').show().val(data.customOptions.bin);
|
||||||
$('#customarg').show().val(data.customOptions.args);
|
$('#customarg').show().val(data.customOptions.argv);
|
||||||
$('#customext').show().val(data.customOptions.ext);
|
$('#customext').show().val(data.customOptions.ext);
|
||||||
}
|
}
|
||||||
mode == 'applescript' && (mode = 'shell');
|
mode == 'applescript' && (mode = 'shell');
|
||||||
@ -426,7 +426,7 @@ $("#options").on('click', '.saveBtn', function () {
|
|||||||
if (program == 'custom') {
|
if (program == 'custom') {
|
||||||
pushData.customOptions = {
|
pushData.customOptions = {
|
||||||
"bin": $('#custombin').val(),
|
"bin": $('#custombin').val(),
|
||||||
"args": $('#customarg').val(),
|
"argv": $('#customarg').val(),
|
||||||
"ext": $('#customext').val()
|
"ext": $('#customext').val()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user