mirror of
https://github.com/tmuxinator/tmuxinator.git
synced 2026-08-03 03:16:01 -05:00
17 lines
295 B
Ruby
17 lines
295 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Tmuxinator
|
|
module Hooks
|
|
module_function
|
|
|
|
def commands_from(project, hook_name)
|
|
hook_config = project.yaml[hook_name]
|
|
if hook_config.is_a?(Array)
|
|
hook_config.join("; ")
|
|
else
|
|
hook_config
|
|
end
|
|
end
|
|
end
|
|
end
|