require "language/node"

class {{ spec.title| caseUcfirst }} < Formula
  desc "CLI is a Node based command-line tool for {{ spec.title| caseUcfirst }} API"
  homepage "{{ sdk.url }}"
  license "{{ sdk.license }}"
  head "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}.git", branch: "master"

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    system "true"
  end
end