mirror of
https://github.com/rancher/k3k.git
synced 2026-08-19 04:16:16 +00:00
update doc and genclidoc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user