update doc and genclidoc

This commit is contained in:
jpgouin
2025-03-03 13:21:07 +00:00
parent 3cf8c0a744
commit a3cbe42782
2 changed files with 3 additions and 11 deletions
+3 -3
View File
@@ -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
-8
View File
@@ -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)