From b98c5971e304669c5aafdb2b0fa6b3b6805b19a5 Mon Sep 17 00:00:00 2001 From: Hesam Norin Date: Fri, 12 May 2023 18:05:18 +0330 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e994daa..d18ae30 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ -# delete confirmation kubectl plugin - A simple plugin for kubectl to prevent fuck ups +# kubectl delete confirmation script + +It's a really simple script with less than 50 lines of code yet, in my opinion, +a useful middleware to prevent irreversible mistakes. + +### How to use? +- `go build` +- 'mv kubectl-confirm-delete /usr/share/mydir/' +- Add this alias to your zshrc or bashrc +- `alias kubectl="/usr/share/mydir/kubectl-confirm-delete"` + +Then, if you run "kubectl delete whatever_resource whatever_name", you should be able to see +the confirmation message. \ No newline at end of file