handling non json lines as raw with red color
parent
68981ff500
commit
02bda720c0
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/local/bin/kubectl logs -f $1 -n $2 --context $3 | jq -r '.message'
|
||||
/usr/local/bin/kubectl logs -f $1 -n $2 --context $3 | jq -rR '. as $raw | try (fromjson | .message) catch ("\u001b[31m" + $raw + "\u001b[0m")'
|
||||
Loading…
Reference in New Issue