Skip to content

Commit

Permalink
update doc and genclidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-gouin committed Feb 28, 2025
1 parent 1376603 commit 56bf6ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/cli/cli-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
8 changes: 0 additions & 8 deletions docs/cli/genclidoc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"bytes"
"fmt"
"os"
"path"
Expand All @@ -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)
Expand Down

0 comments on commit 56bf6ca

Please sign in to comment.