
Describe the bug
The args in the plugins have a templating system to allow concatenate strings with varaibles like $COL0. It doesn't work in complex strings. Check #303
To Reproduce
Steps to reproduce the behavior:
suspendCronsSwitch:
shortCut: Ctrl-S
scopes:
- cj
description: Suspend
command: kubectl
background: true
args:
- patch
- cronjobs
- $COL0
- -p
- '{"spec" : {"suspend" : $COL2 }}'
while true; do ps aux | grep kubectl | grep -v .svn | grep -v defunct; done
Expected behavior
$COL2 is replace with the valie True or False
Screenshots
Versions (please complete the following information):
Additional context
I needed that to execute a bash that switch between True and False strings. I workaround that using two plugins:
suspendCronsSwitch:
shortCut: Ctrl-S
scopes:
- cj
description: Suspend
command: kubectl
background: true
args:
- patch
- cronjobs
- $COL0
- -p
- '{"spec" : {"suspend" : true }}'
enableCronsSwitch:
shortCut: Ctrl-E
scopes:
- cj
description: Enable
command: kubectl
background: true
args:
- patch
- cronjobs
- $COL0
- -p
- '{"spec" : {"suspend" : false }}'
@joskfg - Thank you!! Great catch and excellent report! I'll fix in the next drop...
@joskfg - Should be all betta in v0.13.2. Thank you!!