mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
23 lines
810 B
Lua
23 lines
810 B
Lua
-- DOM Extension.
|
|
-- Implementing 'system.load.average'.
|
|
|
|
-- Arguments: None
|
|
-- Returns: An 8-element list of installation details. Only called once, on
|
|
-- installation of the extension.
|
|
function install ()
|
|
return 'dom', -- Type
|
|
'system.load.average', -- Name
|
|
'1.0', -- Version
|
|
'Provides access to system load', -- Description
|
|
'Paul Beckingham', -- Author
|
|
'paul@beckingham.net', -- Contact
|
|
'MIT', -- License
|
|
'© 2012, Göteborg Bit Factory' -- Copyright
|
|
end
|
|
|
|
-- Arguments: The DOM reference to evaluate
|
|
-- Returns: The value from the DOM lookup
|
|
function lookup (name)
|
|
return 1.23 -- Fake load average
|
|
end
|
|
|