From a3cbe427822dcf3bdfc41829eac61db27010a679 Mon Sep 17 00:00:00 2001 From: jpgouin Date: Fri, 28 Feb 2025 17:51:15 +0000 Subject: [PATCH] update doc and genclidoc --- docs/cli/cli-docs.md | 6 +++--- docs/cli/genclidoc.go | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/docs/cli/cli-docs.md b/docs/cli/cli-docs.md index 1d3a75b2..ea930486 100644 --- a/docs/cli/cli-docs.md +++ b/docs/cli/cli-docs.md @@ -39,7 +39,7 @@ Create new cluster **--cluster-cidr**="": cluster CIDR -**--kubeconfig**="": kubeconfig path (default: "/home/jpgouin/.kube/config") +**--kubeconfig**="": kubeconfig path (default: "$HOME/.kube/config") **--kubeconfig-server**="": override the kubeconfig server host @@ -67,7 +67,7 @@ Delete an existing cluster >k3kcli cluster delete [command options] NAME -**--kubeconfig**="": kubeconfig path (default: "/home/jpgouin/.kube/config") +**--kubeconfig**="": kubeconfig path (default: "$HOME/.kube/config") **--namespace**="": namespace to create the k3k cluster in @@ -87,7 +87,7 @@ Generate kubeconfig for clusters **--expiration-days**="": Expiration date of the certificates used for the kubeconfig (default: 356) -**--kubeconfig**="": kubeconfig path (default: "/home/jpgouin/.kube/config") +**--kubeconfig**="": kubeconfig path (default: "$HOME/.kube/config") **--kubeconfig-server**="": override the kubeconfig server host diff --git a/docs/cli/genclidoc.go b/docs/cli/genclidoc.go index 7ffd030d..7fd6649d 100644 --- a/docs/cli/genclidoc.go +++ b/docs/cli/genclidoc.go @@ -1,7 +1,6 @@ package main import ( - "bytes" "fmt" "os" "path" @@ -28,13 +27,6 @@ func main() { outputFile := path.Join(wd, "docs/cli/cli-docs.md") - // Check if the file exists and if the content is different - existingContent, err := os.ReadFile(outputFile) - if err == nil && bytes.Equal(existingContent, []byte(md)) { - fmt.Println("Cli Documentation is up to date, no changes made.") - return - } - err = os.WriteFile(outputFile, []byte(md), 0644) if err != nil { fmt.Println("Error generating documentation:", err)