Sha256: 517145033e53e3de5f7e2356392a847ffc8a2340218737091e452e5d44d61e3a
Contents?: true
Size: 916 Bytes
Versions: 3
Compression:
Stored size: 916 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__),'..','lib') require 'rubygems' require 'brief' require 'brief/dsl' if ARGV[0] == "console" require 'pry' $briefcase = Brief::Briefcase.new(root: Brief.pwd) Pry.start($briefcase) else require 'commander/import' $brief_cli = true $terminal.wrap_at = 120 program :name, "Brief" program :description, "Brief lets you treat your markdown files like active record objects" program :version, Brief::VERSION # Eager load the briefcase so that the call to Brief.load_commands() # will pick up the briefcase app's model classes if ARGV.include?('--root') index = ARGV.index_of('--root') if value = ARGV[index + 1] $briefcase = Brief::Briefcase.new(root: value) end elsif Pathname(Brief.pwd).join("brief.rb").exist? $briefcase = Brief::Briefcase.new(root: Brief.pwd) end Brief.load_commands() end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brief-1.16.2 | bin/brief |
brief-1.16.1 | bin/brief |
brief-1.16.0 | bin/brief |