Sha256: 9a39180ca2c1fed61d19872d69c231aa66aad4af0df86e643cf0d571bab10f48

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

module Alf
  module Shell
    class Repl < Shell::Command(__FILE__, __LINE__)

      options do |opt|

        opt.on_tail('-h', "--help", "Show help") do
          show_help("alf-repl")
        end

      end

      def run(argv, requester)
        require 'alf-repl'
        Alf::Repl.database = requester.config.database
        Alf::Repl.launch
        Kernel.exit
      end

    end # class Repl
  end # module Shell
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-shell-0.16.4 lib/alf/shell/command/repl.rb
alf-shell-0.16.3 lib/alf/shell/command/repl.rb
alf-shell-0.16.2 lib/alf/shell/command/repl.rb
alf-shell-0.16.1 lib/alf/shell/command/repl.rb
alf-shell-0.16.0 lib/alf/shell/command/repl.rb