Skip to content

Creating Cheatsheets (or) Application Operation Commands

Ravi J edited this page Nov 15, 2020 · 5 revisions

Modern backend applications have a plethora of options, and variations. Be it executing, testing, or storing a collection of settings quickly may not be trivial. And, having a help-string attached to the script goes a long way in recalling what is to be done.

Consider two backend applications:

  • kubernetes
# Create a table named _cheatsheet_
qkw -C -cT cheatsheet

# Add the table to the default config file
qkw -getcfg

# or create a custom config file
qkw -setcfg <config>

# get the template file
qkw -gettemplate kubernetes.data

Open the kubernetes.data with your favorite editor and start adding Kubernetes specific commands: official cheatsheet [url]

label:
kbl.C1

value:
kubectl logs -l name=L1 -c C1; 
kubectl logs -l name=L2 -c C1;
kubectl logs -l name=L2 -c C2;

expl:
dump logs from container C1

---

# Insert the data
qkw -C -if kubernetes.data

# Start using the tags
rfs kbl.C1

WORK_IN_PROGRESS

Clone this wiki locally