github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/table/smartops/confirm.go (about) 1 package smartopsTable 2 3 import ( 4 structureSpec "github.com/taubyte/go-specs/structure" 5 "github.com/taubyte/tau-cli/prompts" 6 "github.com/urfave/cli/v2" 7 ) 8 9 func Confirm(ctx *cli.Context, smartops *structureSpec.SmartOp, prompt string) bool { 10 return prompts.ConfirmData(ctx, prompt, getTableData(smartops, false)) 11 }