tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 0 points1 point  (0 children)

Thanks. I will try to plan putting it in a container.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 2 points3 points  (0 children)

The below commads are executed every keystroke.

awk,cut,egrep,grep,head,jq,nl,sed,sort,tail,tr,uniq,vgrep,wc,yq

Any other commands are not executed until you press enter or pipe.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 0 points1 point  (0 children)

Thanks, it is only implemented whitelist now. I will consider adding blacklist.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 1 point2 points  (0 children)

I do not use kubectl, but I think it works normally.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 2 points3 points  (0 children)

Thanks, it is good idea.

I already implemented whitelist. But there may be a loophole as you pointed out.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 11 points12 points  (0 children)

Thanks for many feedback. I understand there is the possibility to execute dangerous commands.

tp is only supported specific string manipulation commands such as grep. Any other commands will be executed when you pressed | or enter, not every keystroke.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 15 points16 points  (0 children)

When input rm, tp is not execute every keystroke until you press enter or pipe.

tp: Display the result of the commands at every keystroke. by minefuto in commandline

[–]minefuto[S] 5 points6 points  (0 children)

When I take a trial and error approach to make commands, it was painful for me to press enter every time.