Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
John Nguyen authored and nii236 committed Dec 29, 2017
1 parent eaca2be commit c55bbb9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 50 deletions.
60 changes: 13 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,18 @@
# Pody
# K

[![CircleCI](https://circleci.com/gh/JulienBreux/pody.svg?style=svg&circle-token=0a3523b14c7004814d4b057db4efe6840dc58e3a)](https://circleci.com/gh/JulienBreux/pody) [![Github issues](https://img.shields.io/github/issues/JulienBreux/pody.svg)](https://github.com/JulienBreux/pody/issues) [![License](https://img.shields.io/github/license/JulienBreux/pody.svg)](https://github.com/JulienBreux/pody/blob/master/LICENSE) [![Twitter](https://img.shields.io/twitter/follow/JulienBreux.svg)](https://twitter.com/JulienBreux)
I got sick of typing the same `kubectl` commands over and over again so here is my simplified TUI wrapper, K.

👾 CLI app to manage your Pods in your Kubernetes cluster.
# Installation

[![asciicast](https://asciinema.org/a/iMy1llucylhVslRIxZGrnmk9L.png)](https://asciinema.org/a/iMy1llucylhVslRIxZGrnmk9L)
```
go get github.com/nii236/k
cd $GOPATH/src/github.com/nii236/k
dep ensure
go install cmd/k/main.go
k
```

## Getting started
Hit shift+L to do the initial load.

- Download a latest release [here](https://github.com/JulienBreux/pody/releases).
- Run Pody `./pody`

## Key bindings
Key combination | Description
---|---
<kbd>D</kbd>|Delete (pods)
<kbd>L</kbd>|Display logs (pods)
<kbd>PgUp</kbd>|Moves to the previous (pods, namespaces, containers)
<kbd>PgDn</kbd>|Moves to the next (pods, namespaces, containers)
<kbd>Enter</kbd>|Select entry (namespaces)
<kbd>CTRL N</kbd>|Prompts the namespace to switch
<kbd>CTRL+C</kbd>|Exits the application

---

## Stargazers over time

[![Stargazers over time](https://starcharts.herokuapp.com/julienbreux/pody.svg)](https://starcharts.herokuapp.com/julienbreux/pody)

---

### GPG Signature

You can download Julien Breux's public key to verify the signature.

gpg --keyserver hkp://pgp.mit.edu --recv-keys 951C3F93B6A8C22C

[Why sign commit?](https://julienbreux.uk/git-users-it-s-time-to-sign-your-commits-2eef5e51cce2)

---

### Credits
* [Kubernetes](https://kubernetes.io/) famous Kubernetes Go client
* [GOCUI](https://github.com/jroimartin/gocui) for the UI
* [Pad](https://github.com/willf/pad) for the string pad

---

### License

Licensed under the [MIT License](https://julienbreux.github.io/license/) by [Julien Breux](https://github.com/JulienBreux)
# Screenshots
![](/static/screenshot.png)
9 changes: 6 additions & 3 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ func columnHelperReady(pod v1.Pod) string {
}

func Debugln(val interface{}) {
f, err := os.OpenFile("debug.log", os.O_APPEND|os.O_WRONLY, 0666)
if err != nil {
panic(err)
f, err := os.OpenFile("/tmp/debug.log", os.O_APPEND|os.O_WRONLY, 0666)
if err != nil && err == os.ErrNotExist {
f, err = os.Create("/tmp/debug.log")
if err != nil {
panic(err)
}
}
defer f.Close()
t := time.Now()
Expand Down
Binary file added static/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c55bbb9

Please sign in to comment.