adding-help: commit optimized tab completion and help

This commit is contained in:
rkiel
2015-06-07 21:38:20 -04:00
parent 8ce035330d
commit 218fa5a29c
4 changed files with 29 additions and 34 deletions

View File

@@ -20,10 +20,7 @@ module Feature
regexp = Regexp.new(pattern)
# TODO: fix this
cmds = Feature::Commander.new(argv).subcommands.keys.map(&:to_s).sort.select { |x| regexp.match(x) }
puts cmds.join("\n")
puts Feature::Commander.commands.select { |x| regexp.match(x.to_s) }.join("\n")
end
end