Sha256: 4c222a4e84149805dc168599290096ce75b238502242cdfa214437b745552aca

Contents?: true

Size: 229 Bytes

Versions: 15

Compression:

Stored size: 229 Bytes

Contents

command "run" do |c|
  c.syntax = 'brief run FILE'
  c.description = 'run a script in the context of the briefcase'

  c.action do |args, options|
    code = Pathname(args.first).read
    Brief.case.instance_eval(code)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
brief-1.11.6 lib/brief/cli/run.rb
brief-1.11.5 lib/brief/cli/run.rb
brief-1.11.4 lib/brief/cli/run.rb
brief-1.11.3 lib/brief/cli/run.rb
brief-1.11.2 lib/brief/cli/run.rb
brief-1.11.1 lib/brief/cli/run.rb
brief-1.11.0 lib/brief/cli/run.rb
brief-1.10.1 lib/brief/cli/run.rb
brief-1.10.0 lib/brief/cli/run.rb
brief-1.9.14 lib/brief/cli/run.rb
brief-1.9.13 lib/brief/cli/run.rb
brief-1.9.12 lib/brief/cli/run.rb
brief-1.9.11 lib/brief/cli/run.rb
brief-1.9.9 lib/brief/cli/run.rb
brief-1.9.8 lib/brief/cli/run.rb