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