mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00

- Removed the redundant README file, which is now better presented in rfc5-hooks.txt. - Modified all the sample Lua to be rfc5 compliant.
29 lines
872 B
Lua
29 lines
872 B
Lua
-- Program Hook Extension.
|
|
-- Implementing goodbye message.
|
|
|
|
-- Arguments: None
|
|
-- Returns: An 8-element list of installation details. Only called once, on
|
|
-- installation of the extension.
|
|
function install ()
|
|
return 'program', -- Type
|
|
'goodbye', -- Name
|
|
'1.0', -- Version
|
|
'Simply says goodbye', -- Description
|
|
'Paul Beckingham', -- Author
|
|
'paul@beckingham.net', -- Contact
|
|
'GPLv2', -- License
|
|
'© 2011, Göteborg Bit Factory' -- Copyright
|
|
end
|
|
|
|
-- Arguments: None
|
|
-- Returns: String identifying valid program hook
|
|
function hook ()
|
|
return 'on-exit'
|
|
end
|
|
|
|
-- Arguments: None
|
|
-- Returns: 0 --> success only
|
|
function goodbye ()
|
|
print ('Goodbye.')
|
|
end
|
|
|