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