github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/smartops/delete.go (about) 1 package smartops 2 3 import ( 4 structureSpec "github.com/taubyte/go-specs/structure" 5 resources "github.com/taubyte/tau-cli/cli/commands/resources/common" 6 "github.com/taubyte/tau-cli/cli/common" 7 smartopsI18n "github.com/taubyte/tau-cli/i18n/smartops" 8 smartopsLib "github.com/taubyte/tau-cli/lib/smartops" 9 smartopsPrompts "github.com/taubyte/tau-cli/prompts/smartops" 10 smartopsTable "github.com/taubyte/tau-cli/table/smartops" 11 ) 12 13 func (link) Delete() common.Command { 14 return (&resources.Delete[*structureSpec.SmartOp]{ 15 PromptsGetOrSelect: smartopsPrompts.GetOrSelect, 16 TableConfirm: smartopsTable.Confirm, 17 PromptsDeleteThis: smartopsPrompts.DeleteThis, 18 LibDelete: smartopsLib.Delete, 19 I18nDeleted: smartopsI18n.Deleted, 20 }).Default() 21 }