Skip to content
Antoine Toussaint edited this page Aug 24, 2021 · 2 revisions

Plan

Start from the user perspective

kommence init

Create kommence, kommence/exec, kommence/kube, kommence/flow directories

kommence list

Show all the executable, kube and flow available.

kommence add -x

Add an executable. Start a prompt. Which command> with https://github.com/c-bata/go-prompt loading the history of commands Which shortcut> get available default and make sure it's not already set Watch> load local directories

kommence add -k

Add a kube-forward Start a prompt. Which namespace/pod name> get all namespace/pod + current namespace Which shortcut> same as before Which port forwarding>

kommence add -f

Add a flow Start a prompt. Select the exec to run Select the kube to run Select a name

kommence start -x cmds -k pods

cmds can be combination name/shortcut pods can be combination pod/shortcut

kommence start -X cmd -w folder

Just run a command with optional watcher // simple case

kommence start -i

Interactive mode Start prompt. Select exec to run. Select kube to run.