Commit graph

5793 commits

Author SHA1 Message Date
Paul Beckingham
6dff1f36bf Hooks
- Added notes regarding the use of 'first', which may be problematic.
2014-09-08 00:01:54 -04:00
Paul Beckingham
fe549094e3 Task
- Added 'modified' attribute in ::validate, if not already present. This is not
  strictly necessary, but it is good to be explicit.
2014-09-07 23:24:07 -04:00
Paul Beckingham
5ce317bb48 Hooks
- Modified ::onExit to remove the indicator that data was modified. This is not
  supported.
2014-09-07 22:56:28 -04:00
Paul Beckingham
a9cf61c1d1 Hooks
- Removed code supporting data modification during the on-exit event.
- Fixed hook script interface descriptions.
2014-09-07 22:44:03 -04:00
Paul Beckingham
4b70a26e60 Hooks
- Clarified the interface for on-exit, as there is no opportunity for scripts
  triggered by this event to modify data directly.
2014-09-07 22:42:41 -04:00
Paul Beckingham
f47054c485 Hooks
- Added README describing the hook system.
- Corrected hook interface details regarding exit codes.
2014-09-07 22:13:31 -04:00
Paul Beckingham
9e45f5e637 Hooks
- Fixed typo in example hook scripts.
2014-09-07 21:59:31 -04:00
Paul Beckingham
01f2db4b48 Documentation
- Updated developer docs, in preparation for beta.
2014-09-07 21:28:34 -04:00
Paul Beckingham
e15907f3f1 Code Cleanup
- Removed unused uti.cpp indentTree function.
2014-09-07 17:32:46 -04:00
Paul Beckingham
adee92a6b9 Code Cleanup
- Removed unused util.cpp escape function.
2014-09-07 17:27:50 -04:00
Paul Beckingham
66bb5b3906 Code Cleanup
- Removed unused util.cpp encode and decode functions.
2014-09-07 17:25:47 -04:00
Paul Beckingham
a7171193ca Task
- Migrated util.cpp encode and decode functions because this is the only place
  they are used.
2014-09-07 17:23:16 -04:00
Paul Beckingham
bffc7a2ac8 Code Cleanup
- Removed unused util.cpp combine function.
2014-09-07 17:14:03 -04:00
Paul Beckingham
4aa79dccfa Code Cleanup
- Removed unused util.cpp round_up_to and burndown_size functions.
2014-09-07 17:10:06 -04:00
Paul Beckingham
ab95ef5ba5 CmdBurndown
- Migrated util.cpp round_up_to and burndown_size functions to CmdBurndown,
  as they are only called once.
2014-09-07 17:06:11 -04:00
Paul Beckingham
4f54578241 Code Cleanup
- Removed unused util.cpp compressIds function.
2014-09-07 16:57:05 -04:00
Paul Beckingham
dd6399aba7 CmdIDs
- Migrated util.cpp compressIds to CmdIDs::compressIds, as this is the only
  place it is used.
2014-09-07 16:54:59 -04:00
Paul Beckingham
8a31ccabdc Code Cleanup
- Removed unused util.cpp delay function.
2014-09-07 16:48:42 -04:00
Paul Beckingham
be104ee7c4 Code Cleanup
- Removed unused util.cpp confirm3 function.
2014-09-07 16:46:20 -04:00
Paul Beckingham
d9d5d004e6 Code Cleanup
- Removed unused text.cpp cutOff function.
2014-09-07 16:39:05 -04:00
Paul Beckingham
fdb4c1f1bc Code Cleanup
- Removed unused text.cpp visible function.
2014-09-07 16:35:51 -04:00
Paul Beckingham
6303f1c436 Code Cleanup
- Removed unused text.cpp guess function.
2014-09-07 16:30:27 -04:00
Paul Beckingham
f17c59b1f6 Code Cleanup
- Removed unused text.cpp split_minimal function.
2014-09-07 16:27:46 -04:00
Paul Beckingham
8a904fc287 Code Cleanup
- Removed unused text.cpp noVerticalSpace function.
2014-09-07 16:21:32 -04:00
Paul Beckingham
3f07173a03 Code Cleanup
- Removed unused text.cpp isWordEnd function.
2014-09-07 16:15:32 -04:00
Paul Beckingham
7890cf0ab7 Code Cleanup
- Removed unused text.cpp isWordStart function.
2014-09-07 16:12:06 -04:00
Paul Beckingham
c1806303a1 Code Cleanup
- Removed unused text.cpp isTokenEnd function.
2014-09-07 16:06:42 -04:00
Paul Beckingham
2f815a4c6a Unit Tests
- Added test to make sure that rc.default.command is used.
- Added test to make sure that the 'information' command is used when there are
  ID/UUID args but no command.
2014-09-07 14:52:57 -04:00
Paul Beckingham
eebe3b0806 Parser
- Changed ::injectDefaults from collectLeaf to collectTerminated, when scanning
  args to construct the "[task next]" feedback.
2014-09-07 14:51:24 -04:00
Paul Beckingham
9e3a8e5c82 Parser
- Restored default.command in ::injectDefaults.
- Restored 'information' command when an ID/UUID is provided, but no CMD.
2014-09-07 14:37:44 -04:00
Paul Beckingham
ac73a47f9b Parser
- Added the beginnings of the lex-only arg classification.
2014-09-07 13:40:29 -04:00
Paul Beckingham
090c80cb90 Parser
- Removed ::appendStdin.
2014-09-07 13:40:00 -04:00
Paul Beckingham
0da5f9160e STDIN
- Removed the stdin reading feature, which has not been enabled, and is more
  problematic than it should be.
2014-09-07 13:38:46 -04:00
Paul Beckingham
68fb1136cc Lexer
- Added notes about additional lexeme types that are needed, long term.
2014-09-07 13:37:46 -04:00
Paul Beckingham
9ddf447321 Unit Tests
- Added a new set of tests for date math. More of these should be added.
  Some fail and are disabled currently.
2014-09-07 11:22:09 -04:00
Paul Beckingham
803ef4fee2 CmdCustom
- Report filters are now properly lexed, which includes the new typeTag.
2014-09-07 01:20:14 -04:00
Paul Beckingham
aab23692f1 Lexer
- Added a new type Lexer::typeTag.
2014-09-07 01:17:48 -04:00
Paul Beckingham
0b9c84511b Tw-1407
- TW-1407 'task calendar 2014' leaks.
2014-09-06 23:56:32 -04:00
Paul Beckingham
363baa34aa Parser
- Added disqualifier characters for UUID lists.
2014-09-06 23:45:09 -04:00
Paul Beckingham
cb080e70de Parser
- Added disqualifier for id sequences in the form of a set of acceptable
  characters.  Prevents strange problems due to the 'split' calls that are used
  in the implementation.
2014-09-06 23:40:57 -04:00
Paul Beckingham
7c8432d162 Code Cleanup
- util.cpp execute was assuming execvp was returning before freeing memory,
  which is a waste of time.
2014-09-06 22:28:04 -04:00
Paul Beckingham
b4438b4e8f TW-1400
- TW-1400 task "" gives a segfault (thanks to Scott Kostyshak).
2014-09-06 17:22:27 -04:00
Paul Beckingham
04b2378d57 Context
- Removed unreachable code.
2014-09-06 16:47:34 -04:00
Paul Beckingham
ecc528cbf3 L10N
- Marked certain uses of ucFirst as l10n-safe.
2014-09-06 16:11:54 -04:00
Paul Beckingham
de5f41c6c5 Duration
- Cleaned up source formatting.
2014-09-06 15:39:20 -04:00
Paul Beckingham
861cc83e6d TW-241
- TW-241 new column format; recur.short.
- All duration columns now default to compact ISO duration format.
2014-09-06 15:38:25 -04:00
Paul Beckingham
d33de636f1 Fish
- Updated with new config completion.
- Restored completion that was broken by removing tabs.
2014-09-06 15:15:59 -04:00
Paul Beckingham
eae0580c29 Unit Tests
- Corrected test given new localized strings.
2014-09-06 14:45:09 -04:00
Paul Beckingham
84d7fca53f Feedback
- Inverted the test, and improved it.
2014-09-06 14:41:49 -04:00
Paul Beckingham
9b85f8fff2 Unit Tests
- Corrected tests given feedback changes.
2014-09-06 14:38:57 -04:00