ask-cli: fix subcommands

Closes #37096.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Sean Molenaar 2019-02-19 13:56:00 +01:00 committed by FX Coudert
parent 4131377d79
commit 655768ec81

View file

@ -16,11 +16,12 @@ class AskCli < Formula
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
bin.write_exec_script libexec/"bin/ask"
end
test do
output = shell_output("#{bin}/ask deploy 2>&1", 1)
assert_match %r{\AInvalid json: [^ ]+\/.ask\/cli_config\Z}, output
system "#{bin}/ask", "lambda", "--help"
end
end