Sha256: 575217d636c8e71a1c15f4db2bef037ebd8292da0d0de10ec9e01a07c3a6ee9b

Contents?: true

Size: 719 Bytes

Versions: 13

Compression:

Stored size: 719 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative '../lib/asciidoctor_fb2'
require 'asciidoctor/cli'

options = Asciidoctor::Cli::Options.new backend: 'fb2'

# FIXME: provide an API in Asciidoctor for sub-components to print version information
unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty?
  require_relative '../lib/asciidoctor_fb2/version'
  $stdout.write %(Asciidoctor FB2 #{Asciidoctor::FB2::VERSION} using )
  options.print_version
  exit 0
end

# FIXME: This is a really bizarre API. Please make me simpler.
case (result = options.parse! ARGV)
when Integer
  exit result
else
  invoker = Asciidoctor::Cli::Invoker.new options
  GC.start
  invoker.invoke!
  exit invoker.code
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
asciidoctor-fb2-0.7.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.6.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.5.1 bin/asciidoctor-fb2
asciidoctor-fb2-0.5.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.4.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.3.1 bin/asciidoctor-fb2
asciidoctor-fb2-0.3.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.2.4 bin/asciidoctor-fb2
asciidoctor-fb2-0.2.3 bin/asciidoctor-fb2
asciidoctor-fb2-0.2.2 bin/asciidoctor-fb2
asciidoctor-fb2-0.2.1 bin/asciidoctor-fb2
asciidoctor-fb2-0.2.0 bin/asciidoctor-fb2
asciidoctor-fb2-0.1.0 bin/asciidoctor-fb2