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

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