Sha256: 7545ba131efbd25fb2010c50d85339f1ac8ff8baee5dbc744d0908577268ce5c

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

#!/usr/bin/env ruby
# -*- mode: ruby -*-
require 'docopt'
require 'org-converge'

doc = <<OPTIONS

org-spec: Validate whether code blocks match to the contents of the #+RESULTS block

Usage:
  org-spec <org_file> [--showfiles] [--log=<logfile>] [--root-dir=<root_dir>] [--name=<block_name>]

Options:

  -h --help               Show this screen.

OPTIONS

begin
  require "pp"
  cmd = Docopt::docopt(doc)
rescue Docopt::Exit => e
  puts e.message
end

exit 1 unless cmd

o = OrgConverge::Command.new(cmd.merge({ '--runmode' => 'spec' }))
o.execute!

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
org-converge-0.0.17 bin/org-spec
org-converge-0.0.16 bin/org-spec
org-converge-0.0.15 bin/org-spec
org-converge-0.0.14 bin/org-spec
org-converge-0.0.13 bin/org-spec
org-converge-0.0.12 bin/org-spec
org-converge-0.0.11 bin/org-spec
org-converge-0.0.10 bin/org-spec
org-converge-0.0.9 bin/org-spec
org-converge-0.0.8 bin/org-spec