"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/bin/asciidoctor" (1 Jun 2019, 376 Bytes) of package /linux/www/asciidoctor-2.0.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/env ruby
    2 # frozen_string_literal: true
    3 
    4 asciidoctor = File.absolute_path '../lib/asciidoctor.rb', __dir__
    5 if File.exist? asciidoctor
    6   require asciidoctor
    7   require File.join Asciidoctor::LIB_DIR, 'asciidoctor/cli'
    8 else
    9   require 'asciidoctor'
   10   require 'asciidoctor/cli'
   11 end
   12 
   13 invoker = Asciidoctor::Cli::Invoker.new ARGV
   14 GC.start
   15 invoker.invoke!
   16 exit invoker.code