Skip to content

Commit

Permalink
fix README.md & help info
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Nov 26, 2019
1 parent 88e92e0 commit 9e2b57f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Usage:
kubecm [command]

Available Commands:
add Merge configuration file with ./kube/config
add Merge configuration file with $HOME/.kube/config
delete Delete the specified context from the kubeconfig
get Displays one or many contexts from the kubeconfig file.
help Help about any command
Expand Down Expand Up @@ -67,13 +67,13 @@ sudo mv kubecm /usr/local/bin/
# Add the binary in to your $PATH
```
### Add configuration to `./kube/config`
### Add configuration to `$HOME/.kube/config`
```bash
# Merge example.yaml with ./kube/config.yaml
# Merge example.yaml with $HOME/.kube/config.yaml
kubecm add -f example.yaml

# Merge example.yaml and name contexts test with ./kube/config.yaml
# Merge example.yaml and name contexts test with $HOME/.kube/config.yaml
kubecm add -f example.yaml -n test

# Overwrite the original kubeconfig file
Expand Down
6 changes: 3 additions & 3 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ var cover bool
// addCmd represents the add command
var addCmd = &cobra.Command{
Use: "add",
Short: "Merge configuration file with ./kube/config",
Short: "Merge configuration file with $HOME/.kube/config",
Example: `
# Merge example.yaml with ./kube/config
# Merge example.yaml with $HOME/.kube/config
kubecm add -f example.yaml
# Merge example.yaml and name contexts test with ./kube/config
# Merge example.yaml and name contexts test with $HOME/.kube/config
kubecm add -f example.yaml -n test
# Overwrite the original kubeconfig file
Expand Down

0 comments on commit 9e2b57f

Please sign in to comment.