Skip to content

hellgrenj/simpledash_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpledash CLI

a simple readonly CLI for simpledash.

It fetches the simpledash context, connects to the simpledash websocket server and displays a dashboard in the terminal. It will update the dashboard when the websocket server sends an update.

screen 1: see a snapshot of the cluster status and select a namespace
screenshot2

screen 2: monitor the namespace (endpoints, deployments and pods). this screen auto updates when the websocket server sends an update. You can click on the view logs links and endpoint links.
screenshot2

Installation

linux x86_64:

curl -Lo sc https://github.com/hellgrenj/simpledash_cli/releases/download/v0.3.0/sc-linux-x86_64 && \
sudo install sc /usr/local/bin/

macos arm64:

curl -Lo sc https://github.com/hellgrenj/simpledash_cli/releases/download/v0.3.0/sc-macos-arm64 && \
sudo install sc /usr/local/bin/

Usage

sc -h https://your.simpledash.url

tips

If you have multiple simpledash servers create aliases for them in your .bashrc or .zshrc file.
like this:

alias stest="sc -h https://simpledash-test.mycompany.com"
alias sprod="sc -h https://simpledash-prod.mycompany.com"

now you can just type stest or sprod to start the CLI for the different servers.

Development

prerequisites

rust

run

first: clone simpledash and follow the instructions to start it.
then:

cargo run . -h http://localhost:1337

test

cargo test

build

cargo build -r