github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/domain/delete.go (about) 1 package domain 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 domainI18n "github.com/taubyte/tau-cli/i18n/domain" 8 domainLib "github.com/taubyte/tau-cli/lib/domain" 9 domainPrompts "github.com/taubyte/tau-cli/prompts/domain" 10 domainTable "github.com/taubyte/tau-cli/table/domain" 11 ) 12 13 func (link) Delete() common.Command { 14 return (&resources.Delete[*structureSpec.Domain]{ 15 PromptsGetOrSelect: domainPrompts.GetOrSelect, 16 TableConfirm: domainTable.Confirm, 17 PromptsDeleteThis: domainPrompts.DeleteThis, 18 LibDelete: domainLib.Delete, 19 I18nDeleted: domainI18n.Deleted, 20 }).Default() 21 }