From 0b9f4a47ba61be796572e58813b2400b7c23c4ba Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Sun, 1 Oct 2023 16:12:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20vcd=20cli=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/vcd/config/config.go | 14 ++++++++++---- providers/vcd/provider/provider.go | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/providers/vcd/config/config.go b/providers/vcd/config/config.go index 11cc998d18..262084f5e7 100644 --- a/providers/vcd/config/config.go +++ b/providers/vcd/config/config.go @@ -15,9 +15,13 @@ var Config = plugin.Provider{ ConnectionTypes: []string{provider.ConnectionType}, Connectors: []plugin.Connector{ { - Name: "vcd", - Use: "vcd", - Short: "VMware Cloud Director", + Name: "vcd", + Use: "vcd [--user ] [--host ] [--organization ] [--ask-pass] [--password ]", + Short: "VMware Cloud Director", + Long: `vcd is designed for querying resources within for a VMware Cloud Director environment. VMware's +vCloud Director (vCD), a platform that facilitates the operation and management of virtual resources within +a multi-tenant cloud environment. +`, Discovery: []string{}, Flags: []plugin.Flag{ { @@ -25,12 +29,14 @@ var Config = plugin.Provider{ Type: plugin.FlagType_String, Default: "", Desc: "vCloud Director user", + Option: plugin.FlagOption_Required, }, { Long: "host", Type: plugin.FlagType_String, Default: "", - Desc: "vCloud Director user", + Desc: "vCloud Director host", + Option: plugin.FlagOption_Required, }, { Long: "organization", diff --git a/providers/vcd/provider/provider.go b/providers/vcd/provider/provider.go index a3dcf424ee..d87e304864 100644 --- a/providers/vcd/provider/provider.go +++ b/providers/vcd/provider/provider.go @@ -39,7 +39,8 @@ func (s *Service) ParseCLI(req *plugin.ParseCLIReq) (*plugin.ParseCLIRes, error) } conn := &inventory.Config{ - Type: req.Connector, + Type: req.Connector, + Options: make(map[string]string), } // custom flag parsing