Sha256: 05126635a4cf07ba40c5a1e02a2bb37c101b52c9f6c138f199e5d4cfe688097d
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
#!/usr/bin/env ruby if File.file?(asciidoctor_bespoke = (File.expand_path '../../lib/asciidoctor-bespoke.rb', __FILE__)) require asciidoctor_bespoke else require 'asciidoctor-bespoke' end require 'asciidoctor/cli' options = Asciidoctor::Cli::Options.new backend: 'bespoke' # FIXME provide an API in Asciidoctor for sub-components to print version information unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty? $stdout.write %(Asciidoctor Bespoke #{Asciidoctor::Bespoke::VERSION} using ) # NOTE the print_version method was added in Asciidoctor 1.5.2 if options.respond_to? :print_version options.print_version else puts %(Asciidoctor #{::Asciidoctor::VERSION} [http://asciidoctor.org]) end exit 0 end # FIXME This is a really bizarre API. Please make me simpler. if Integer === (result = options.parse! ARGV) exit result else invoker = Asciidoctor::Cli::Invoker.new options GC.start invoker.invoke! exit invoker.code end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-bespoke-1.0.0.alpha.2 | bin/asciidoctor-bespoke |