xfind: started

This commit is contained in:
rkiel
2019-03-16 23:42:16 -04:00
parent 0015d4d0ff
commit 0358d9a443
2 changed files with 110 additions and 0 deletions

17
bin/xfind Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
require_relative '../lib/xfind/commander'
if File.exist? './.xfind'
project_argv = File.read('./.xfind').split(/\s/).reject { |x| x.strip == "" }
argv = project_argv + ARGV
else
argv = ARGV
end
commander = Xfind::Commander.new(argv)
if commander.valid?
commander.execute
else
commander.help
end