mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 18:17:29 +09:00
Fix "help cmd" and "cmd refresh" in the Developer Toolbar
https://github.com/MoonchildProductions/moebius/pull/348
This commit is contained in:
parent
e7a9064f98
commit
fadd7deef2
3 changed files with 9 additions and 8 deletions
|
|
@ -137,8 +137,6 @@ exports.items = [
|
||||||
return !prefBranch.prefHasUserValue(PREF_DIR);
|
return !prefBranch.prefHasUserValue(PREF_DIR);
|
||||||
},
|
},
|
||||||
exec: function(args, context) {
|
exec: function(args, context) {
|
||||||
gcli.load();
|
|
||||||
|
|
||||||
let dirName = prefBranch.getComplexValue(PREF_DIR,
|
let dirName = prefBranch.getComplexValue(PREF_DIR,
|
||||||
Ci.nsISupportsString).data.trim();
|
Ci.nsISupportsString).data.trim();
|
||||||
return l10n.lookupFormat("cmdStatus3", [ dirName ]);
|
return l10n.lookupFormat("cmdStatus3", [ dirName ]);
|
||||||
|
|
@ -170,8 +168,6 @@ exports.items = [
|
||||||
supportsString.data = args.directory;
|
supportsString.data = args.directory;
|
||||||
prefBranch.setComplexValue(PREF_DIR, Ci.nsISupportsString, supportsString);
|
prefBranch.setComplexValue(PREF_DIR, Ci.nsISupportsString, supportsString);
|
||||||
|
|
||||||
gcli.load();
|
|
||||||
|
|
||||||
return l10n.lookupFormat("cmdStatus3", [ args.directory ]);
|
return l10n.lookupFormat("cmdStatus3", [ args.directory ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ exports.items = [
|
||||||
' <div if="${command.isParent}">\n' +
|
' <div if="${command.isParent}">\n' +
|
||||||
' <p class="gcli-help-header">${l10n.subCommands}:</p>\n' +
|
' <p class="gcli-help-header">${l10n.subCommands}:</p>\n' +
|
||||||
' <ul class="gcli-help-${subcommands}">\n' +
|
' <ul class="gcli-help-${subcommands}">\n' +
|
||||||
' <li if="${subcommands.length === 0}">${l10n.subcommandsNone}</li>\n' +
|
' <li if="${subcommands.length === 0}">${l10n.subCommandsNone}</li>\n' +
|
||||||
' <li foreach="subcommand in ${subcommands}">\n' +
|
' <li foreach="subcommand in ${subcommands}">\n' +
|
||||||
' ${subcommand.name}: ${subcommand.description}\n' +
|
' ${subcommand.name}: ${subcommand.description}\n' +
|
||||||
' <span class="gcli-out-shortcut" data-command="help ${subcommand.name}"\n' +
|
' <span class="gcli-out-shortcut" data-command="help ${subcommand.name}"\n' +
|
||||||
|
|
@ -321,7 +321,7 @@ exports.items = [
|
||||||
'\n' +
|
'\n' +
|
||||||
'<span if="${command.isParent}"># ${l10n.subCommands}:</span>\n' +
|
'<span if="${command.isParent}"># ${l10n.subCommands}:</span>\n' +
|
||||||
'\n' +
|
'\n' +
|
||||||
'<span if="${subcommands.length === 0}">${l10n.subcommandsNone}</span>\n' +
|
'<span if="${subcommands.length === 0}">${l10n.subCommandsNone}</span>\n' +
|
||||||
'<loop foreach="subcommand in ${subcommands}">* ${subcommand.name}: ${subcommand.description}\n' +
|
'<loop foreach="subcommand in ${subcommands}">* ${subcommand.name}: ${subcommand.description}\n' +
|
||||||
'</loop>\n' +
|
'</loop>\n' +
|
||||||
'</div>\n',
|
'</div>\n',
|
||||||
|
|
|
||||||
|
|
@ -141,9 +141,10 @@ helpManual=Provide help either on a specific command (if a search string is prov
|
||||||
helpSearchDesc=Search string
|
helpSearchDesc=Search string
|
||||||
helpSearchManual3=search string to use in narrowing down the displayed commands. Regular expressions not supported.
|
helpSearchManual3=search string to use in narrowing down the displayed commands. Regular expressions not supported.
|
||||||
|
|
||||||
# LOCALIZATION NOTE: These strings are displayed in the help page for a
|
# LOCALIZATION NOTE (helpManSynopsis, helpManDescription): These strings are
|
||||||
# command in the console.
|
# displayed in the help page for a command in the console.
|
||||||
helpManSynopsis=Synopsis
|
helpManSynopsis=Synopsis
|
||||||
|
helpManDescription=Description
|
||||||
|
|
||||||
# LOCALIZATION NOTE: This message is displayed in the help page if the command
|
# LOCALIZATION NOTE: This message is displayed in the help page if the command
|
||||||
# has no parameters.
|
# has no parameters.
|
||||||
|
|
@ -177,6 +178,10 @@ helpIntro=GCLI is an experiment to create a highly usable command line for web d
|
||||||
# sub-commands.
|
# sub-commands.
|
||||||
subCommands=Sub-Commands
|
subCommands=Sub-Commands
|
||||||
|
|
||||||
|
# LOCALIZATION NOTE: Text shown as part of the output of the 'help' command
|
||||||
|
# when the command in question should have sub-commands but in fact has none.
|
||||||
|
subCommandsNone=None
|
||||||
|
|
||||||
# LOCALIZATION NOTE: This error message is displayed when the command line is
|
# LOCALIZATION NOTE: This error message is displayed when the command line is
|
||||||
# cannot find a match for the parse types.
|
# cannot find a match for the parse types.
|
||||||
commandParseError=Command line parsing error
|
commandParseError=Command line parsing error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue