{"modulePath":"github.com/weaveworks/eksctl","version":"v0.233.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package powershell\n\n## Functions\n\n```go\nfunc FormatHashTable(table []KeyValue, variableName string) string\n```\nFormatHashTable formats table as a PowerShell hashtable. The caller is responsible for ensuring variableName is a valid PowerShell variable name and the key-value pairs can be surrounded by single-quoted strings.\n\n```go\nfunc FormatParams(params []KeyValue) string\n```\nFormatParams formats params into \\`-key \"value\"\\`, ignoring keys with empty values.\n\n```go\nfunc FormatStringVariables(params []KeyValue) string\n```\nFormatStringVariables formats params as PowerShell string variables. The caller is responsible for ensuring the keys are valid PowerShell variable names and the values can be surrounded by single-quoted strings.\n\n```go\nfunc JoinVariables(variables ...string) string\n```\nJoinVariables joins the specified variables.\n\n```go\nfunc ToCLIArgs(params []KeyValue) string\n```\nToCLIArgs formats params as CLI arguments.\n\n## Types\n\n```go\ntype KeyValue struct {\n\tKey   string\n\tValue string\n}\n```\nA KeyValue holds a key-value pair.\n\n","path":"github.com/weaveworks/eksctl/pkg/nodebootstrap/powershell","name":"powershell","synopsis":"","isRedistributable":true}
