Permalink
Browse files

First pass.

  • Loading branch information...
0 parents commit 92b6206d62e23c1a83d3516eed087d04fcdc93ba @imbriaco committed Sep 21, 2011
Showing with 26 additions and 0 deletions.
  1. +18 −0 README.md
  2. +2 −0 init.rb
  3. +6 −0 lib/dwim.rb
@@ -0,0 +1,18 @@
+# Heroku CLI Do What I Mean
+
+This is a hack to solve a problem I continually have where my brain is unable to remember that the command to set a configuration variable is actuall config:add and not config:set.
+
+## Before
+
+```
+$ heroku config:set foo=bar
+ ! config:set is not a heroku command. See 'heroku help'.
+```
+
+## After
+```
+$ heroku config:set foo=bar
+Adding config vars:
+ foo => bar
+Restarting app... done, v2.
+```
@@ -0,0 +1,2 @@
+
+require File.join(File.dirname(__FILE__), 'lib', 'dwim.rb')
@@ -0,0 +1,6 @@
+
+module Heroku::Command
+ class Config < BaseWithApp
+ alias_method :set, :add
+ end
+end

0 comments on commit 92b6206

Please sign in to comment.