lib/gl/cli.rb in gl-0.2.0 vs lib/gl/cli.rb in gl-0.2.1
- old
+ new
@@ -15,9 +15,10 @@
desc 'issues', 'handle issues of the project'
subcommand 'issues', Issues
def self.setup
Gitlab.endpoint = "https://#{Gl.remote_base}/api/v4/"
+ Gl.validate_endpoint!
prompt = TTY::Prompt.new
token = `git config --get gl.#{Gl.remote_slug}.token`.chomp
if token.empty?