bin/sharp in sharp-0.2.1 vs bin/sharp in sharp-0.3.0
- old
+ new
@@ -1,11 +1,16 @@
#!/usr/bin/env ruby
-if ARGV[0] == "console"
+require 'sharp'
+
+case ARGV[0]
+when "console"
require File.expand_path('app/boot', Dir.pwd)
require 'irb'
ARGV.clear
IRB.start(Sharp.root)
+when "new"
+ Sharp.generate(ARGV[1])
else
$stderr.puts "Unknown command"
exit 1
end