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

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