github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/messaging/delete.go (about)

     1  package messaging
     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  	messagingI18n "github.com/taubyte/tau-cli/i18n/messaging"
     8  	messagingLib "github.com/taubyte/tau-cli/lib/messaging"
     9  	messagingPrompts "github.com/taubyte/tau-cli/prompts/messaging"
    10  	messagingTable "github.com/taubyte/tau-cli/table/messaging"
    11  )
    12  
    13  func (link) Delete() common.Command {
    14  	return (&resources.Delete[*structureSpec.Messaging]{
    15  		PromptsGetOrSelect: messagingPrompts.GetOrSelect,
    16  		TableConfirm:       messagingTable.Confirm,
    17  		PromptsDeleteThis:  messagingPrompts.DeleteThis,
    18  		LibDelete:          messagingLib.Delete,
    19  		I18nDeleted:        messagingI18n.Deleted,
    20  	}).Default()
    21  }