semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
26 stars 13 forks source link

Save a version of YAML resource if edit fails #109

Closed shiroyasha closed 4 years ago

shiroyasha commented 5 years ago

Example from kubernetes world:

semaphore@semaphore-vm:~/istio-playground$ kc edit virtualservice hello
error: virtualservices.networking.istio.io "hello" is invalid
A copy of your changes has been stored to "/tmp/kubectl-edit-7tb06.yaml"
error: Edit cancelled, no valid changes were saved.