Skip to content

Commit

Permalink
feat: remove extraneous .rb in help text
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Feb 3, 2018
1 parent 9ed1d30 commit 1080344
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packaging/pact-broker.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
require 'pact_broker/client/cli/broker'

class Thor
module Base
module ClassMethods

def basename
# chomps the trailing .rb so it doesn't show in the help text
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
end
end
end
end

PactBroker::Client::CLI::Broker.start
13 changes: 13 additions & 0 deletions packaging/pact-mock-service.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
require 'pact/mock_service/cli'

class Thor
module Base
module ClassMethods

def basename
# chomps the trailing .rb so it doesn't show in the help text
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
end
end
end
end

Pact::MockService::CLI.start
13 changes: 13 additions & 0 deletions packaging/pact-provider-verifier.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
require 'pact/provider_verifier/cli/verify'

class Thor
module Base
module ClassMethods

def basename
# chomps the trailing .rb so it doesn't show in the help text
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
end
end
end
end

Pact::ProviderVerifier::CLI::Verify.start
13 changes: 13 additions & 0 deletions packaging/pact-stub-service.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
require 'pact/stub_service/cli'

class Thor
module Base
module ClassMethods

def basename
# chomps the trailing .rb so it doesn't show in the help text
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
end
end
end
end

Pact::StubService::CLI.start

0 comments on commit 1080344

Please sign in to comment.