github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/env/helpers.go (about)

     1  package env
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/taubyte/tau-cli/flags"
     7  	"github.com/urfave/cli/v2"
     8  )
     9  
    10  func justDisplayExport(c *cli.Context, key, value string) bool {
    11  	if c.Bool(flags.Env.Name) {
    12  		fmt.Printf("export %s=%s\n", key, value)
    13  		return true
    14  	}
    15  
    16  	return false
    17  }