docs/gadgets: Add missing "bash" to terminal snippets
@@ -25,14 +25,14 @@ We can use one or more of these parameters to choose which pods or
containers will be inspected by our gadgets.
For example:
-```
+```bash
$ kubectl gadget trace exec -n demo -l app=myapp
```
Will run the `exec` tracer for all pods in the `demo` namespace that have
the `app=myapp` label.
-```
+```bash
$ kubectl gadget snapshot socket -A -p nginx
```
@@ -52,7 +52,7 @@ This can be overridden with either `json` or `custom-columns`.
Passing `-o json` will print all the information gathered in JSON format.
For example:
-```
+```bash
$ kubectl gadget trace tcp -A -o json | jq
{
"type": "normal",
@@ -81,8 +81,8 @@ For example, when tracing which processes were killed because of the node
running out of memory, we can choose to only print the PID and command of
the killed process:
-```
-kubectl gadget trace oomkill -A -o custom-columns=kpid,kcomm
+```bash
+$ kubectl gadget trace oomkill -A -o custom-columns=kpid,kcomm
KPID KCOMM
15182 tail
```
@@ -97,7 +97,7 @@ we want to run the gadget.
For example, we can trace files that get opened by pods in the `gadget`
namespace during a window of 5 seconds, like this:
-```
+```bash
$ kubectl gadget trace open -n gadget --timeout 5
NODE NAMESPACE POD CONTAINER PID COMM FD ERR PATH
minikube gadget gadget-vhcj7 gadget 1303299 gadgettracerman 3 0 /etc/ld.so.cache
@@ -117,7 +117,7 @@ support for many CLI options that are common to many Kubernetes tools,
which let us specify how to connect to the cluster, which kubeconfig to
use, and so on.
-```
+```bash
--as string Username to impersonate for the operation
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--cache-dir string Default cache directory (default "/home/marga/.kube/cache")
