From fef24b2b2484644dfe56f3944ca6b8c8313b8929 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Nov 2013 19:06:33 -0800 Subject: [PATCH] core: output available commands in machine-readable --- lib/vagrant/cli.rb | 1 + website/docs/source/v2/cli/machine-readable.html.md | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb index 112c27adf..f98c045b3 100644 --- a/lib/vagrant/cli.rb +++ b/lib/vagrant/cli.rb @@ -65,6 +65,7 @@ module Vagrant commands.keys.sort.each do |key| o.separator " #{key.ljust(longest+2)} #{commands[key]}" + @env.ui.machine("cli-command", key.dup) end o.separator "" diff --git a/website/docs/source/v2/cli/machine-readable.html.md b/website/docs/source/v2/cli/machine-readable.html.md index 239273e9f..f8a1db229 100644 --- a/website/docs/source/v2/cli/machine-readable.html.md +++ b/website/docs/source/v2/cli/machine-readable.html.md @@ -99,6 +99,13 @@ with the machine-readable output. + +cli-command + + A subcommand of vagrant that is available. + + + provider-name