Sha256: 9e2c23954118da6b1406e3b69f72c266d2f5b01942cf02a29889723db8e8898c

Contents?: true

Size: 867 Bytes

Versions: 2

Compression:

Stored size: 867 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "pathname"

$:.unshift Pathname(File.dirname(__FILE__)).join("..","lib")

# support for the traveling ruby env
ENV['BRIEF_PWD'] = ENV['DATAPIMP_PWD'] = ENV['ARCHI_PWD'] if ENV['ARCHI_PWD']

require "pry"
require 'colored'
require 'architects/toolkit'
require 'datapimp'
require 'datapimp/cli'
require 'brief'
require 'brief/dsl'

args = ARGV.to_a.dup

if args.shift.to_s.strip.downcase == "run"
  require(args.first) if args.first

  if args.empty?
    code = STDIN.read

    if code.length > 0
      eval(code)
    end
  end
else
  require "commander/import"

  program :name, 'archit'
  program :version, Architects::Toolkit::VERSION || "1.0.1"
  program :description, 'architects toolkit for writing blueprints'
    
  $terminal.wrap_at = 120 if $terminal
  Datapimp::Cli.load_commands()
  Brief.load_commands()
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
architects-toolkit-0.1.8 bin/archi
architects-toolkit-0.1.7 bin/archi