Skip to content

Commit

Permalink
Add usage comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lmm committed Dec 14, 2021
1 parent 9557da1 commit 3467317
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hack/gen-install-calico-windows-script/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ var (
baseUrl string
)

// This program generates the Calico for Windows installation script for a given product, version and baseUrl.
//
// Examples:
//
// For Calico v3.21.1:
//
// gen-install-calico-windows-script \
// -product Calico \
// -version v3.21.1 \
// -templatePath windows-packaging/install-calico-windows.ps1.tpl \
// -baseUrl https://docs.projectcalico.org > install-calico-windows.ps1
//
//
// For Calico Enterprise v3.11.0:
//
// gen-install-calico-windows-script \
// -product "Calico Enterprise" \
// -version v3.11.0 \
// -templatePath windows-packaging/install-calico-windows.ps1.tpl \
// -baseUrl https://docs.tigera.io > install-calico-windows.ps1
func main() {
flag.StringVar(&product, "product", "", `product to generate install script for. either "Calico" or "Calico Enterprise"`)
flag.StringVar(&version, "version", "", `version`)
Expand Down

0 comments on commit 3467317

Please sign in to comment.