Sha256: f1270e7d3726fa02a93652307571f350dfe142e93ba619f8721219bce267221d
Contents?: true
Size: 630 Bytes
Versions: 16
Compression:
Stored size: 630 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path("../../lib", __dir__) $LOAD_PATH.unshift File.expand_path("lib", __dir__) require "rbnotes" DEBUG = true module Rbnotes class App def initialize @conf = default_conf end def default_conf { :repository_type => :file_system, :repository_name => DEBUG ? "sandbox/notes_dev" : "notes", :repository_base => File.expand_path("~"), :pager => "bat", } end def run(args) cmd = args.shift Rbnotes::Commands.load(cmd).execute(args, @conf) end end end app = Rbnotes::App.new app.run(ARGV)
Version data entries
16 entries across 16 versions & 1 rubygems