Skip to content

Commit

Permalink
fix: set exit on failure to true for new pactflow command
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 10, 2022
1 parent 7744255 commit 429dfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/pact_broker/client/cli/broker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ def version
require "pact_broker/client/version"
$stdout.puts PactBroker::Client::VERSION
end

no_commands do
def self.exit_on_failure?
true
end
end
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/pact_broker/client/cli/custom_thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class CustomThor < ::Thor
using PactBroker::Client::HashRefinements

no_commands do
def self.exit_on_failure?
true
end

def self.start given_args = ARGV, config = {}
super(massage_args(given_args))
end
Expand Down

0 comments on commit 429dfbd

Please sign in to comment.