Sha256: 4947e5ae5c008a90a3283fa3851fa4c153206b1af32a2223cfc3e61e82a49ea1

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 Bytes

Contents

#!/usr/bin/env ruby
require 'optparse'

check_notes = false

options = {}
choices = OptionParser.new do |opts|
  opts.banner = "Usage: notion_orbit --check-notes"
  opts.on("-h", "--help", "Prints help instructions") do
    puts opts
    exit
  end
  opts.on("--check-notes", "Check for new notes") do
    check_notes = true
  end
end.parse!

$LOAD_PATH.unshift(File.expand_path('../lib/notion_orbit', __dir__))

require_relative '../lib/notion_orbit'
require_relative '../scripts/check_notes'

if check_notes
  puts "Checking for new notes and posting them to your Orbit workspace..."
  ARGV[0] = 'render'
  NotionOrbit::Scripts::CheckNotes.start(ARGV)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
notion_orbit-0.0.7 bin/notion_orbit
notion_orbit-0.0.6 bin/notion_orbit
notion_orbit-0.0.5 bin/notion_orbit
notion_orbit-0.0.4 bin/notion_orbit
notion_orbit-0.0.3 bin/notion_orbit
notion_orbit-0.0.2 bin/notion_orbit