Class: Pact::MockService::CLI::CustomThor

Inherits:
Thor
  • Object
show all
Defined in:
lib/pact/mock_service/cli/custom_thor.rb

Overview

Custom Thor task allows the following:

script arg1 arg2 to be interpreted as script <default_task> arg1 arg2 --option 1 --option 2 to be interpreted as --option 1 2 (the standard Thor format for multiple value options) script --help to display the help for the default task instead of the command list

Direct Known Subclasses

StubService::CLI

Class Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Thor 1.0 deprecation guard

Returns:

  • (Boolean)


14
15
16
# File 'lib/pact/mock_service/cli/custom_thor.rb', line 14

def self.exit_on_failure? # Thor 1.0 deprecation guard
  false
end