/usr/bin/gherkin-generate-tokens is in ruby-gherkin 4.0.0-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/ruby
$VERBOSE=nil # Shut up JRuby warnings on Travis
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),"../lib"))
require 'gherkin/parser'
require 'gherkin/token_formatter_builder'
parser = Gherkin::Parser.new(Gherkin::TokenFormatterBuilder.new)
files = ARGV + (STDIN.tty? ? [] : [STDIN])
files.each do |file|
File.open(file, 'r:UTF-8') do |io|
print parser.parse(io)
end
end
|