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