diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/commands.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb index 250ec0e..254138e 100644 --- a/lib/hcl/commands.rb +++ b/lib/hcl/commands.rb @@ -62,6 +62,10 @@ module HCl        end      end +    def completion +      %[complete -W "#{aliases.join ' '}" hcl] +    end +      def aliases        @settings.keys.select { |s| s =~ /^task\./ }.map { |s| "@"+s.slice(5..-1) }      end | 
