class Github < Cask
  url 'https://central.github.com/mac/latest'
  homepage 'http://mac.github.com'
  version 'latest'
  no_checksum
  link 'GitHub.app'
  after_install do
    system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true'
  end
end

class Github < Cask
  url 'https://central.github.com/mac/latest'
  homepage 'http://mac.github.com'
  version 'latest'
  no_checksum
  link 'GitHub.app'
  binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github'
  after_install do
    system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true'
  end
end

Fix CLI tool installation in GitHub for Mac
Fix CLI tool installation in GitHub for Mac

Symlinks the 'github' CLI binary that enables opening GitHub for Mac
from the command line. As per the defaults for the application, the
internal `github_cli` binary is symlinked simply as `github`.

Note this intetionally does *not* also symlink the bundled versions.
of `git` itself, as anyone using brewcask is going to want to be able
to manage those normally via homebrew.`
