Open alexellis opened 4 years ago
I hit the same error with a different command. I had not yet set a default apikey and ran into this:
$ civo apikey current
Traceback (most recent call last):
14: from /Users/andy/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
13: from /Users/andy/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
12: from /Users/andy/.rvm/gems/ruby-2.6.3/bin/civo:23:in `<main>'
11: from /Users/andy/.rvm/gems/ruby-2.6.3/bin/civo:23:in `load'
10: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/civo_cli-0.4.0/exe/civo:6:in `<top (required)>'
9: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
8: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
7: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
6: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
5: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor.rb:235:in `block in subcommand'
4: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
3: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
2: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
1: from /Users/andy/.rvm/gems/ruby-2.6.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/Users/andy/.rvm/gems/ruby-2.6.3/gems/civo_cli-0.4.0/lib/apikey.rb:42:in `current': undefined method `colorize' for nil:NilClass (NoMethodError)
I was simply adding 3 instances with a similar command to #34