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