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

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