Commit graph

38 commits

Author SHA1 Message Date
Paul Beckingham
765c12a2d1 l10n: Eliminated STRING_CMD_CONTEXT_* 2018-05-14 00:04:44 -04:00
Paul Beckingham
216d4d63bc Copyright 2018 2018-05-13 23:30:21 -04:00
Tomas Babej
7465410c5a context: Do not allow show, list or none as new context names
- Thanks to silviof.
2018-05-13 23:23:53 -04:00
Paul Beckingham
717e8c3be5 CmdContext: Table headers consistent 2018-05-13 23:02:36 -04:00
Paul Beckingham
88516acdaa Copyright update 2018-05-13 20:50:26 -04:00
Paul Beckingham
ec84d0f372 util: Migrated optionalBlankLine from text 2018-05-13 20:31:47 -04:00
Paul Beckingham
8a43f4902d libhsared: migrating from local to libshared 2018-05-13 20:26:34 -04:00
Paul Beckingham
6ad736346f CmdContext: Migrated from ViewText to Table 2018-05-13 20:15:07 -04:00
Paul Beckingham
35e518cbc2 Cleanup: Don't use string literals when character literals are needed 2018-05-13 20:11:49 -04:00
Paul Beckingham
724a4a02a0 Code formatting 2016-02-06 12:13:19 -05:00
Paul Beckingham
92f22149c0 TW-1735: context with no subcommand should do something
- Thanks to Simon Michael.
2016-01-11 21:05:33 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
116e5adaf2 CmdContext: Color only used for tty 2015-11-15 14:29:09 -05:00
Paul Beckingham
5d9ca9864e Cmd*: Moved include to top of list, per flint++ recommendation 2015-11-01 19:53:19 -05:00
Tomas Babej
98973a9390 CmdContext: Handle errors in a consistent way 2015-10-30 16:33:16 -04:00
Paul Beckingham
a82558064b Cleanup: Prep for '-Wextra' 2015-10-16 16:27:05 -04:00
Paul Beckingham
28d0c534b1 CmdContext: Added 'const' for method args that are const 2015-09-05 14:39:52 -04:00
Paul Beckingham
bf80c7d514 Cmd*: Added command DNA, which will ѕoon drive functionality 2015-08-01 15:56:04 -04:00
Daniel Shahaf
5ca1dd540e zcmdcat: Categorize 'task context'. 2015-07-26 14:00:02 -04:00
Daniel Shahaf
53a702d79a zcmdcat: Categorize commands. 2015-07-26 13:55:23 -04:00
Paul Beckingham
737cb23546 CLI2: Eliminated CLI
- This is a large commit, as all the changes are centered around the elimination
  of CLI.
- CLI is no longer compiled.
- Context no longer maintains CLI + CLI2.
- Filter now walks the parse tree and sends to Eval a
  std::vector <std::pair <std::string, Lexer::Type>> containing only args tagged
  with FILTER.
- Filter more efficiently sets/unsets Eval::debug, by doing it less often.
- The filterExpr.length() check is no longer meaningful, and instead the size of
  the std::vector above is used.
- Filter::pendingOnly performs better analysis.
- Filter::safety makes use of the std::vector size also.
- Task::modify makes use of 'canonical' rather than 'name', which is a policy
  change, not a fix.
2015-06-24 13:23:56 -04:00
Paul Beckingham
72073b7515 CmdContext: Converted from CLI to CLI2 2015-06-16 21:53:51 -04:00
Paul Beckingham
2f1ca72334 Code: Improved comments regarding filters/args. 2015-06-07 15:34:33 -04:00
Renato Alves
21d5a7fbe8 Display the active context when listing known contexts 2015-06-04 20:14:14 +01:00
Paul Beckingham
5a57dfd70d C++11: Cleaned up commands code with range-based for 2015-05-11 17:45:15 -04:00
Tomas Babej
85d0e1789a CmdContext: Validate context's filter upon definition 2015-02-24 16:55:28 -05:00
Tomas Babej
e19c99ce1e CmdContext: Fix incorrect exception handling 2015-02-24 16:53:23 -05:00
Paul Beckingham
394acae790 CmdContext
- Trivіal code edits.
2015-02-23 20:07:53 -05:00
Tomas Babej
1278226c16 CmdContext: Localize the hardcoded strings 2015-02-23 19:22:01 -05:00
Tomas Babej
ee23a099f2 CmdContext: Minor style and message changes 2015-02-23 19:21:50 -05:00
Tomas Babej
09fe5be086 CmdContext: Add show subcommand 2015-02-23 19:19:41 -05:00
Tomas Babej
1a3550541b CmdContext: Add support for unsetting context 2015-02-23 19:19:38 -05:00
Tomas Babej
371ca27da0 CmdContext: Add support for setting context 2015-02-23 19:19:35 -05:00
Tomas Babej
5f3dd43893 CmdCompletionContext: Implement the context completion list 2015-02-23 19:19:32 -05:00
Tomas Babej
edb54a51b3 CmdContext: Add list subcommand 2015-02-23 19:19:29 -05:00
Tomas Babej
636f6bfd96 CmdContext: Add initial implementation of the delete subcommand 2015-02-23 19:19:24 -05:00
Tomas Babej
e91063426a CmdContext: Add initial implementation of the context define subcommand 2015-02-23 19:19:18 -05:00
Tomas Babej
49a7e46eaf CmdContext: Add initial plumbing 2015-02-23 19:19:08 -05:00