Files
tmuxinator/lib/tmuxinator/hooks.rb
2024-03-31 14:40:26 -04:00

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