Sha256: b5839301f9ecd2312821e3f3e54c27cfa5a8bdc83ef2799df18788f0616168e0

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

#!/usr/bin/env ruby

require 'wlog/version'
require 'wlog/domain/static_configurations'
require 'wlog/ui/bootstrap'
require 'wlog/ui/cli_interface'

include Wlog

if ARGV.size > 0
  case ARGV[0]
  when "--list"
    # TODO FIXME
    CliInterface.list_databases
  when '--where'
    puts StaticConfigurations::DataDirectory
  when '--version', '-v'
    print "wlog "
    puts Wlog::VERSION
  when /--/
    puts "Unknown command."
  else
    # Make overall configurations
    Bootstrap.configure!
    CliInterface.new.run
  end
else
  # Make overall configurations
  Bootstrap.configure!
  CliInterface.new.run
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wlog-1.2.2 bin/wlog