Commit graph

21 commits

Author SHA1 Message Date
Felix Schurk
93356b39c3 add initial bulk run from pre-commit over all files 2024-07-29 22:34:51 +02:00
Sebastian Carlos
b70d8ef574
Remove locking config (#3519)
This flag is no longer needed. It was used to control file locking on the *.data files.

Co-authored-by: Sebastian Carlos <sebastiancarlos@gmail.com>
2024-06-28 18:12:10 -04:00
Jonas DOREL
510786ff91 Hooks readme : mention task diagnotics debug 2021-03-18 21:59:42 -04:00
Daniel Shahaf
218f074609 Hooks: Improved comments in sample hook script 2015-08-12 23:21:16 -04:00
Wilhelm Schuermann
df209b9b8b TW-1587: Further improve example on-exit hook
- Initial patch was not quite right.  on-exit _does_ receive added and
  modified tasks on STDIN, but is not allowed to return JSON.
2015-03-31 07:25:23 +02:00
Jochen Sprickerhof
c27f5d23b6 Hooks: Remove read loop from example on-exit hook
There is no input to the on-exit script. Prevents error:
"Hook Error: Expected 0 JSON task(s), found 1"

Signed-off-by: Wilhelm Schuermann <wimschuermann@googlemail.com>
2015-03-30 21:38:25 +02:00
Paul Beckingham
8e730f2da3 Hooks
- Updated examples to not rely on bash being in /bin.
2015-02-07 10:25:50 -05:00
Paul Beckingham
1cfdfbae52 Hooks
- Removed the ability for hooks to add tasks, or modify tasks that are outside
  the context of the current event. This makes hooks a local mechanism that
  operates only on local changes. Modifications/additions coming in via sync
  command are not processed by hooks.
2015-01-31 17:47:58 -05:00
Paul Beckingham
94e243d8d0 Hooks
- Added 'read -t 1' as an example for the on-exit sample hook.
2014-10-09 19:05:24 -04:00
Wilhelm Schuermann
ffc456be88 Hooks
- Cleaned up on-add.the example hook; now works with huge input without falling over.
2014-10-02 14:50:52 -04:00
Paul Beckingham
1fc388886f Hooks
- Typos.
2014-09-09 23:19:39 -04:00
Paul Beckingham
51291f76fe Hooks
- Updated documentation and style of example hook scripts.
2014-09-09 23:09:24 -04:00
Paul Beckingham
ec0757b2c9 Hooks
- Added example of spelling correction via hook script.
2014-09-09 23:08:38 -04:00
Paul Beckingham
633d273ef3 Hooks
- Implemented replacement for shadow files, in the form of a hook
  script.
- Uses rc.shadow.command otherwise rc.default.command.
- Uses rc.shadow.file.
- Overrides settings that cause race conditions.
- Provides success and failure messages.
2014-09-08 01:38:09 -04:00
Paul Beckingham
7fdac6a09e Hooks
- Added an example hook script, on-exit.shadow-file, which simulates the now
  deprecated (soon to be removed) shadow file feature.
2014-09-08 00:51:21 -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
db37b0d4ed Hooks
- Corrected comment in sample hook script.
2014-05-17 11:41:32 -04:00
Paul Beckingham
11058396c8 Hooks
- Cleaned up せxample hooks, with clearer inline documentation.
2014-05-17 11:16:32 -04:00
Paul Beckingham
3f2df5a3b6 Hooks
- Added example hook scripts.
2014-05-14 20:10:37 -04:00