./bin/lux_assets in lux_assets-0.2.9 vs ./bin/lux_assets in lux_assets-0.2.11

- old
+ new

@@ -4,10 +4,18 @@ require 'colorize' require 'awesome_print' ### +if ['-v', '--version'].include?(ARGV[0]) + puts 'v%s' % Pathname.new(__dir__).join('../.version').read.chomp + exit +end + +### + +# Load app if possible if ARGV[0] if File.exist?('./config/application.rb') require './config/application.rb' end @@ -90,9 +98,12 @@ desc :monitor, 'Montitor and compile changed files' def monitor LuxAssets::Cli.monitor end - end + +### + +trap("SIGINT") { Cli.die 'ctrl+c exit' } AssetsCli.start ARGV