@@ -18,7 +18,6 @@ package cmd
1818import (
1919 "fmt"
2020
21- "github.com/chainloop-dev/chainloop/app/cli/cmd/options"
2221 "github.com/chainloop-dev/chainloop/app/cli/internal/action"
2322 "github.com/spf13/cobra"
2423)
@@ -70,7 +69,7 @@ func newCASBackendUpdateCmd() *cobra.Command {
7069
7170// confirmDefaultCASBackendOverride asks the user to confirm the override of the default CAS backend
7271// in the event that there is one already set and its not the same as the one we are setting
73- func confirmDefaultCASBackendOverride (actionOpts * options .ActionsOpts , id string ) (bool , error ) {
72+ func confirmDefaultCASBackendOverride (actionOpts * action .ActionsOpts , id string ) (bool , error ) {
7473 // get existing backends
7574 backends , err := action .NewCASBackendList (actionOpts ).Run ()
7675 if err != nil {
@@ -96,11 +95,11 @@ func confirmDefaultCASBackendOverride(actionOpts *options.ActionsOpts, id string
9695}
9796
9897// If we are removing the default we confirm too
99- func confirmDefaultCASBackendRemoval (actionOpts * options .ActionsOpts , name string ) (bool , error ) {
98+ func confirmDefaultCASBackendRemoval (actionOpts * action .ActionsOpts , name string ) (bool , error ) {
10099 return confirmDefaultCASBackendUnset (name , "You are deleting the default CAS backend." , actionOpts )
101100}
102101
103- func confirmDefaultCASBackendUnset (name , msg string , actionOpts * options .ActionsOpts ) (bool , error ) {
102+ func confirmDefaultCASBackendUnset (name , msg string , actionOpts * action .ActionsOpts ) (bool , error ) {
104103 // get existing backends
105104 backends , err := action .NewCASBackendList (actionOpts ).Run ()
106105 if err != nil {
@@ -152,7 +151,7 @@ func captureUpdateFlags(cmd *cobra.Command) error {
152151// handleDefaultUpdateConfirmation centralizes the confirmation logic when the --default flag
153152// is provided. It returns (true, nil) when it's ok to proceed, (false, nil) when the user
154153// declined confirmation, or (false, err) when an error happened.
155- func handleDefaultUpdateConfirmation (actionOpts * options .ActionsOpts , name string ) (bool , error ) {
154+ func handleDefaultUpdateConfirmation (actionOpts * action .ActionsOpts , name string ) (bool , error ) {
156155 if isDefaultCASBackendUpdateOption == nil {
157156 return true , nil
158157 }
0 commit comments