mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
add console script
This commit is contained in:
parent
658bd54f49
commit
da254e4aab
1 changed files with 15 additions and 0 deletions
15
script/console
Executable file
15
script/console
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env ruby
|
||||
# Usage: script/console
|
||||
# Starts an IRB console with this library loaded.
|
||||
|
||||
require 'bundler/setup'
|
||||
require 'irb'
|
||||
require 'irb/completion'
|
||||
|
||||
project_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$:.unshift project_lib unless $:.include?(project_lib)
|
||||
|
||||
require 'instapaper'
|
||||
|
||||
ARGV.clear
|
||||
IRB.start
|
||||
Loading…
Reference in a new issue