Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Dec 2, 2019
1 parent b113301 commit 7ba1c0f
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,28 @@ kubecm switch
```
![switch](dosc/switch.gif)
### Displays contexts(*Will be removed*)
### Delete context
```bash
# Delete the context
kubecm delete my-context
```
### Delete context
```bash
# Delete the context
kubecm delete my-context
```
### Rename context
```bash
# Renamed dev to test
kubecm rename -o dev -n test
# Renamed current-context name to dev
kubecm rename -n dev -c
```
### Displays contexts(*Will be removed in new version*)
```bash
# List all the contexts in your kubeconfig file
Expand All @@ -142,29 +163,13 @@ $ kubecm get
+------------+-----------------------+-----------------------+--------------------+--------------+
```
### Delete context
```bash
# Delete the context
kubecm delete my-context
```
### Switch context(*Will be removed*)
### Switch context(*Will be removed in new version*)
```bash
# Use the context for the test cluster
kubecm use test
```
### Rename context
```bash
# Renamed dev to test
kubecm rename -o dev -n test
# Renamed current-context name to dev
kubecm rename -n dev -c
```
## Contribute
Feel free to open issues and pull requests. Any feedback is highly appreciated!
Expand Down

0 comments on commit 7ba1c0f

Please sign in to comment.