Method: PreCommit::Cli#execute
- Defined in:
- lib/pre-commit/cli.rb
#execute ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/pre-commit/cli.rb', line 17 def execute() action_name = @args.shift or 'help' action = :"execute_#{action_name}" if respond_to?(action) then send(action, *@args) else execute_help(action_name, *@args) end end |