github.com/fastly/cli@v1.7.2-0.20240304164155-9d0f1d77c3bf/pkg/commands/secretstore/helper_test.go (about)

     1  package secretstore_test
     2  
     3  import (
     4  	"bytes"
     5  
     6  	"github.com/fastly/go-fastly/v9/fastly"
     7  
     8  	"github.com/fastly/cli/pkg/text"
     9  )
    10  
    11  func fmtStore(s *fastly.SecretStore) string {
    12  	var b bytes.Buffer
    13  	text.PrintSecretStore(&b, "", s)
    14  	return b.String()
    15  }
    16  
    17  func fmtStores(s []fastly.SecretStore) string {
    18  	var b bytes.Buffer
    19  	text.PrintSecretStoresTbl(&b, s)
    20  	return b.String()
    21  }