Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
thyme
v0.1.6
Thyme
Command
Config
Daemon
Error
Format
Hook
HookCollection
HookEvent
Option
ProcessHandler
SignalHandler
StatusAlign
Timer
Tmux
Built with Crystal 1.9.2
2023-10-08 08:29:33 UTC
class
Thyme::Hook
Thyme::Hook
Reference
Object
Defined in:
thyme/hook.cr
Constructors
.new
(name : String, events : Array(HookEvent), command : String)
Class Method Summary
.parse
(name : String, hook : YAML::Any)
Instance Method Summary
#call
(hooks_args : NamedTuple)
#events
: Array(HookEvent)
#name
: String
Constructor Detail
def self.
new
(name : String, events : Array(
HookEvent
), command : String)
#
[
View source
]
Class Method Detail
def self.
parse
(name : String, hook : YAML::Any)
#
[
View source
]
Instance Method Detail
def
call
(hooks_args : NamedTuple)
#
[
View source
]
def
events
: Array(
HookEvent
)
#
[
View source
]
def
name
: String
#
[
View source
]