Skip to content

Commit

Permalink
🧹 update vcd cli docs (#2013)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Oct 1, 2023
1 parent 3231f3c commit a44119e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 10 additions & 4 deletions providers/vcd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,28 @@ var Config = plugin.Provider{
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "vcd",
Use: "vcd",
Short: "VMware Cloud Director",
Name: "vcd",
Use: "vcd [--user <user>] [--host <host>] [--organization <organization>] [--ask-pass] [--password <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{
{
Long: "user",
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",
Expand Down
3 changes: 2 additions & 1 deletion providers/vcd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a44119e

Please sign in to comment.