MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / confirmDefaultCASBackendRemoval

Function confirmDefaultCASBackendRemoval

app/cli/cmd/casbackend.go:106–108  ·  view source on GitHub ↗

If we are removing the default we confirm too

(actionOpts *action.ActionsOpts, name string)

Source from the content-addressed store, hash-verified

104
105// If we are removing the default we confirm too
106func confirmDefaultCASBackendRemoval(actionOpts *action.ActionsOpts, name string) (bool, error) {
107 return confirmDefaultCASBackendUnset(name, "You are deleting the default CAS backend.", actionOpts)
108}
109
110func confirmDefaultCASBackendUnset(name, msg string, actionOpts *action.ActionsOpts) (bool, error) {
111 // get existing backends

Callers 1

newCASBackendDeleteCmdFunction · 0.85

Calls 1

Tested by

no test coverage detected