github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/table/application/confirm.go (about)

     1  package applicationTable
     2  
     3  import (
     4  	"strings"
     5  
     6  	structureSpec "github.com/taubyte/go-specs/structure"
     7  	"github.com/taubyte/tau-cli/prompts"
     8  	"github.com/urfave/cli/v2"
     9  )
    10  
    11  func Confirm(ctx *cli.Context, app *structureSpec.App, prompt string) bool {
    12  	return prompts.ConfirmData(ctx, prompt, [][]string{
    13  		{"Name", app.Name},
    14  		{"Description", app.Description},
    15  		{"Tags", strings.Join(app.Tags, ", ")},
    16  	})
    17  }