From 3467317b5412d6671e79d10d7db15124ee4023b8 Mon Sep 17 00:00:00 2001 From: Laurence Man Date: Tue, 30 Nov 2021 14:44:31 -0800 Subject: [PATCH] Add usage comment --- .../gen-install-calico-windows-script/main.go | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hack/gen-install-calico-windows-script/main.go b/hack/gen-install-calico-windows-script/main.go index 367e6cf57..c5c366e89 100644 --- a/hack/gen-install-calico-windows-script/main.go +++ b/hack/gen-install-calico-windows-script/main.go @@ -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`)