[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [akonadi-next/feature/new_cli] akonadish/syntax_modules: don't translate the commands; let them be s
From:       Aaron Seigo <aseigo () kde ! org>
Date:       2015-12-25 10:05:51
Message-ID: E1aCPFv-000596-CQ () scm ! kde ! org
[Download RAW message or body]

Git commit 540864148b9bccc4b00bb3ba504190d608489413 by Aaron Seigo.
Committed on 25/12/2015 at 10:01.
Pushed by aseigo into branch 'feature/new_cli'.

don't translate the commands; let them be scriptable universally

M  +9    -9    akonadish/syntax_modules/core_syntax.cpp

http://commits.kde.org/akonadi-next/540864148b9bccc4b00bb3ba504190d608489413

diff --git a/akonadish/syntax_modules/core_syntax.cpp \
b/akonadish/syntax_modules/core_syntax.cpp index 8f3219f..31b824a 100644
--- a/akonadish/syntax_modules/core_syntax.cpp
+++ b/akonadish/syntax_modules/core_syntax.cpp
@@ -150,23 +150,23 @@ Syntax::List syntax()
     Syntax::List syntax;
     syntax << Syntax("exit", QObject::tr("Exits the application. Ctrl-d also \
works!"), &CoreSyntax::exit);  
-    Syntax help(QObject::tr("help"), QObject::tr("Print command information: help \
[command]"), &CoreSyntax::showHelp); +    Syntax help("help", QObject::tr("Print \
command information: help [command]"), &CoreSyntax::showHelp);  help.completer = \
&CoreSyntax::showHelpCompleter;  syntax << help;
 
     syntax << Syntax("syntaxtree", QString(), &printSyntaxTree);
 
-    Syntax set(QObject::tr("set"), QObject::tr("Sets settings for the session"));
-    set.children << Syntax(QObject::tr("debug"), QObject::tr("Set the debug level \
                from 0 to 6"), &CoreSyntax::setDebugLevel);
-    Syntax setTiming = Syntax(QObject::tr("timing"), QObject::tr("Whether or not to \
                print the time commands take to complete"));
-    setTiming.children << Syntax(QObject::tr("on"), QString(), [](const QStringList \
                &, State &state) -> bool { state.setCommandTiming(true); return true; \
                });
-    setTiming.children << Syntax(QObject::tr("off"), QString(), [](const QStringList \
&, State &state) -> bool { state.setCommandTiming(false); return true; }); +    \
Syntax set("set", QObject::tr("Sets settings for the session")); +    set.children << \
Syntax("debug", QObject::tr("Set the debug level from 0 to 6"), \
&CoreSyntax::setDebugLevel); +    Syntax setTiming = Syntax("timing", \
QObject::tr("Whether or not to print the time commands take to complete")); +    \
setTiming.children << Syntax("on", QString(), [](const QStringList &, State &state) \
-> bool { state.setCommandTiming(true); return true; }); +    setTiming.children << \
Syntax("off", QString(), [](const QStringList &, State &state) -> bool { \
state.setCommandTiming(false); return true; });  set.children << setTiming;
     syntax << set;
 
-    Syntax get(QObject::tr("get"), QObject::tr("Gets settings for the session"));
-    get.children << Syntax(QObject::tr("debug"), QObject::tr("The current debug \
                level from 0 to 6"), &CoreSyntax::printDebugLevel);
-    get.children << Syntax(QObject::tr("timing"), QObject::tr("Whether or not to \
print the time commands take to complete"), &CoreSyntax::printCommandTiming); +    \
Syntax get("get", QObject::tr("Gets settings for the session")); +    get.children << \
Syntax("debug", QObject::tr("The current debug level from 0 to 6"), \
&CoreSyntax::printDebugLevel); +    get.children << Syntax("timing", \
QObject::tr("Whether or not to print the time commands take to complete"), \
&CoreSyntax::printCommandTiming);  syntax << get;
 
     return syntax;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic