Skip to content

Commit 1080344

Browse files
committed
feat: remove extraneous .rb in help text
1 parent 9ed1d30 commit 1080344

4 files changed

+52
-0
lines changed

packaging/pact-broker.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
require 'pact_broker/client/cli/broker'
2+
3+
class Thor
4+
module Base
5+
module ClassMethods
6+
7+
def basename
8+
# chomps the trailing .rb so it doesn't show in the help text
9+
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
10+
end
11+
end
12+
end
13+
end
14+
215
PactBroker::Client::CLI::Broker.start

packaging/pact-mock-service.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
require 'pact/mock_service/cli'
2+
3+
class Thor
4+
module Base
5+
module ClassMethods
6+
7+
def basename
8+
# chomps the trailing .rb so it doesn't show in the help text
9+
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
10+
end
11+
end
12+
end
13+
end
14+
215
Pact::MockService::CLI.start

packaging/pact-provider-verifier.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
require 'pact/provider_verifier/cli/verify'
2+
3+
class Thor
4+
module Base
5+
module ClassMethods
6+
7+
def basename
8+
# chomps the trailing .rb so it doesn't show in the help text
9+
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
10+
end
11+
end
12+
end
13+
end
14+
215
Pact::ProviderVerifier::CLI::Verify.start

packaging/pact-stub-service.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
require 'pact/stub_service/cli'
2+
3+
class Thor
4+
module Base
5+
module ClassMethods
6+
7+
def basename
8+
# chomps the trailing .rb so it doesn't show in the help text
9+
File.basename($PROGRAM_NAME).split(" ").first.chomp(".rb")
10+
end
11+
end
12+
end
13+
end
14+
215
Pact::StubService::CLI.start

0 commit comments

Comments
 (0)