Commit graph

383 commits

Author SHA1 Message Date
Paul Beckingham
8ee02c8bac Context
- If Hooks::onExit indicates changes, TDB2::commit is called.
2014-08-09 21:06:58 -04:00
Paul Beckingham
3136fa1746 Context
- Added clarifying comment to the strange test in ::verbose.
2014-08-09 20:39:18 -04:00
Paul Beckingham
bd7e66a939 Context
- Improved sort column parsing to include an optional trailing solidus, in
  addition to the +/- sort direction.
2014-07-10 22:14:35 -04:00
Wilhelm Schuermann
7548ce662a TW-296
- TW-296 urgency of blocked task should affect urgency of blocking task

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-06 14:11:10 -04:00
Paul Beckingham
0cd56932a5 Context
- Added ::getLimits, copied from CmdCustom, for more general use.
2014-07-04 11:03:23 -04:00
Paul Beckingham
b60a4aff22 TW-294
- TW-294 Display UUID of task created by add (thanks to John West).
2014-07-04 09:24:55 -04:00
Paul Beckingham
531e490e44 Context
- Properly extract alias 'from' from the configuration variable name.
2014-07-03 22:34:05 -04:00
Paul Beckingham
bc24d107d5 Context
- Stuffs parser with alias definitions, from Context::loadAliases.  This keeps
  the configuration settings apart from the Parser implementation.
2014-07-03 19:09:24 -04:00
Paul Beckingham
29604d0626 Context
- Stubbed a ::loadAliases method to stuff the Parser with alias defs.
2014-07-03 19:06:05 -04:00
Paul Beckingham
5b9413b02c Alias
- Removal of alias load/resolve code, which (1) needs a rewrite, and (2) belongs
  in the Parser.
2014-07-03 19:04:48 -04:00
Paul Beckingham
850dbb36f0 Context
- ::clear now calls Parser::clear, which prevents the parse tree from growing
  with every shell command.
2014-06-03 01:31:25 -04:00
Paul Beckingham
56a70b00c4 Context
- No longer segfaults when ::initialize (argç, argv) is called with zero
  arguments, which is what the shell is doing.
2014-06-03 00:55:18 -04:00
Paul Beckingham
cd837a006c Task
- ::modify was not casting strings to dates for date types.
2014-06-03 00:42:21 -04:00
Paul Beckingham
1cd09bc87b Alias
- Implemented simple word substitution aliases. This is not the ultimate form
  which will involve the ability to insert arbitrary constructs.  Later.
2014-06-03 00:11:42 -04:00
Paul Beckingham
7196ac8554 Variant
- ::operator_match disobeyed rc.search.case.sensitive.
2014-06-02 23:15:25 -04:00
Paul Beckingham
fc5dad7a9a Parser
- Now that all (?) Parser methods for tree scanning can be called more than
  once, move all methods into the ::parse method.
2014-05-31 22:17:56 -04:00
Paul Beckingham
592a3bb60f Lexer
- Lexer now makes a speculative legacy dateformat parse whenever it encounters
  a decimal digit.  This assumes that rc.dateformat begins with a numeric date
  element, which is a restriction, but not a big one.
2014-05-29 18:09:11 -04:00
Paul Beckingham
52eaf3f9c2 Variant
- Can now convert type_string to type_date via legacy dateformat, provided
  that Context transmits the format.
2014-05-29 00:43:39 -04:00
Paul Beckingham
50bfb6881a Context
- Captures argv[0] for us in the shadow command.
2014-05-27 21:23:33 -04:00
Paul Beckingham
a32f2f991a Context
- A helper command (e.g. _ids) should be considered a "cmd", "readcmd" and
  "helper" entity.
2014-05-26 23:06:32 -04:00
Paul Beckingham
b06ac68248 Lexer
- When a Lexer::typeIdentifier is found, it can be compared to a list of
  other tokens, with the possibility of changing the type. This applies to
  tokens that are longer than the four-character lookahead in the Lexer.
  With this change, the Lexer can now identify all operators supported by Eval,
  and therefore the Lexer can be used on all Eval input expressions. This is
  because all the evaluator needs to know is the distinction between operators
  and operands.
2014-05-26 20:58:10 -04:00
Paul Beckingham
1b19414178 Parser
- ::findCommand now checks for any abbreviated command.  If it finds either an
  exact match, or no ambiguity, it checks again to determine READCMD, WRITECMD
  or HELPER.
2014-05-26 15:05:56 -04:00
Paul Beckingham
410ca4bcba Context
- Removed uninteresting debug diagnostic.
2014-05-26 12:40:55 -04:00
Paul Beckingham
904c42fcbe Parser
- ::getCommand should return the canonical form of the command, not the raw
  input.
2014-05-25 22:45:00 -04:00
Paul Beckingham
afe4b6883f Context
- Removed all A3 references.
2014-05-25 20:02:26 -04:00
Paul Beckingham
4b12c87c40 Context
- Eliminated call to A3::list.
2014-05-25 19:50:50 -04:00
Paul Beckingham
f87d7bd94a Context
- Converted from A3::find_command to Parser::getCommand.
2014-05-25 19:41:02 -04:00
Paul Beckingham
949063102a Diagnostics
- Further removal of diagnostic output.
2014-05-25 14:59:09 -04:00
Paul Beckingham
7688bdc6c4 Context
- Removed obsolete A3::dump call.
- Marked all a3 references as obsolete.
2014-05-25 14:33:46 -04:00
Paul Beckingham
79abddd03d Parser
- Renamed A3t to Parser.
2014-05-25 09:44:22 -04:00
Paul Beckingham
5f143bee49 Context
- Found another case where an empty verbosity token list was being examined.
2014-05-21 20:22:38 -04:00
Paul Beckingham
ad0c349684 Context
- Verbose control bug fix which was caused by verbose=off due to a
  missing rc.verbose setting, then later comparison with the first
  token, which did not exist.
2014-05-21 20:11:37 -04:00
Paul Beckingham
d53c432ff9 Verbosity
- New verbosity token 'filter' shows the complete filter used by the last
  command.
2014-05-21 17:21:22 -04:00
Paul Beckingham
ad1dc807ea Context
- Added special integer catch handler for hook terminations.
2014-05-14 00:03:56 -04:00
Paul Beckingham
cc112aeec7 Context
- Relocated the hooks.onExit call to a location where it can still influence
  output.
2014-05-13 16:49:29 -04:00
Paul Beckingham
7bf2b4039e Context
- Added a hook timer.
2014-05-13 16:49:10 -04:00
Paul Beckingham
39c476134f Hooks
- Added ::onLaunch.
2014-05-13 16:34:23 -04:00
Paul Beckingham
6cff8d9ff6 Hooks
- Added ::initialize method.
2014-05-13 16:31:27 -04:00
Paul Beckingham
bfb19e0a64 Hooks
- Gutted the Hooks object.
- Commented out on-launch and on-exit triggers.
2014-05-13 16:23:50 -04:00
Paul Beckingham
b01906cd62 Unit tests
- New command line parser is live for DOM access and DOM testing.
2014-04-24 12:00:50 -04:00
Paul Beckingham
0dc73d759b DOM
- Migrated DOM off A3, onto A3t.  First live use of new parser.
2014-04-24 11:48:43 -04:00
Paul Beckingham
b690a8d2a3 A3t
- Renamed methods for consistency.
2014-04-21 16:23:17 -04:00
Paul Beckingham
6f948826a7 A3t
- Combined ::findFileOverride and ::findConfigOverride into ::findOverride.
- Made ::findBinary public, and corrected comment.
2014-04-20 09:26:01 -04:00
Paul Beckingham
3c701c8d5b A3t
- Removed obsolete ::findAliases method.
2014-04-19 08:28:02 -04:00
Paul Beckingham
a353cbaf91 Alias
- Integrated new Alias object into new command line processing.
2014-04-19 08:22:27 -04:00
Paul Beckingham
f439cd4813 A3t
- Renamed resolve_aliases to findAliases, for a better fit.
- Partially implemented findAliases.
2014-04-17 22:01:55 -04:00
Paul Beckingham
b5649fca8c A3t
- Relocated calls to findCommand, findUUIDList, findIdSequence from
  A3t::parse to Context::initialize.
2014-04-16 15:59:56 -04:00
Paul Beckingham
ca8d22ab54 A3t
- Added stubbed A3t::inject_defaults and A¾t::resolve_aliases methods.
2014-04-16 00:51:49 -04:00
Paul Beckingham
de5204adb9 A3t
- Added operator entities.
2014-04-16 00:48:27 -04:00
Paul Beckingham
c0ed08e5e2 A3t
- Tags attributes as MODIFIABLE.
2014-04-15 21:14:38 -04:00