# File lib/fastcst/command/env.rb, line 41
41:         def run
42:             repo = Repository.new @repo_dir
43: 
44:             if @key
45:                 orig_val = repo[@key]
46:             
47:                 if @value
48:                     repo[@key] = @value
49:                 else
50:                     repo.delete @key
51:                     UI.event :env, "#@key deleted."
52:                 end
53:             
54:                 UI.event :env, "Original value: #{orig_val}" if orig_val
55:             else
56:                 # load it directly so we can treat it like a hash
57:                 env = YAML.load_file(repo.env_yaml)
58:                 
59:                 env.keys.sort.each do |k|
60:                     if @regex.match(k) or @regex.match(env[k].inspect)
61:                         printf "%20 s => %s", k, env[k].inspect
62:                         
63:                         if @type
64:                             print "   (#{env[k].class})\n"
65:                         else
66:                             print "\n"
67:                         end
68:                     end
69:                 end
70:             end
71:         end