lib/td/command/common.rb in td-0.7.1 vs lib/td/command/common.rb in td-0.7.2
- old
+ new
@@ -54,16 +54,11 @@
end
op
end
- def cmd_config
- require 'td/config'
- Config.read($TRD_CONFIG_PATH)
- end
-
- def cmd_api(conf)
- apikey = conf['account.apikey']
+ def cmd_api
+ apikey = Config.apikey
unless apikey
raise ConfigError, "Account is not configured."
end
require 'td/api'
api = API.new(apikey)