canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
48 stars 23 forks source link

Destructive commands safeguard #153

Closed PietroPasotti closed 1 month ago

PietroPasotti commented 1 month ago

This PR implements a devmode safeguard for jhack

full list of commands and whether they are destructive:

"show-relation" NO "show-stored" NO "tail" NO "record" NO "ffwd" NO "print-env" NO "unbork-juju" YES "fire" YES "pull-cmr" YES "update" NO "init" NO "func" NO "sync-packed" NO "lobotomy" YES "provision" YES "replay.install" YES "replay.purge" YES "replay.list" NO "replay.dump" NO "replay.emit" YES "view" NO "fill" NO "clear" NO "version" NO "show-relation" NO "show-stored" NO "tail" NO "ffwd" NO "jenv" NO "list-endpoints" NO "sync" YES "nuke" YES "deploy" YES "fire" YES "pull-cmr" NO (already has confirmation prompt) "charm-info" YES "eval" YES "script" YES "default" NO "current" NO "snapshot" NO "state-apply" YES