github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/lib/dream/build_local.go (about)

     1  package dreamLib
     2  
     3  import (
     4  	"strconv"
     5  )
     6  
     7  type BuildLocalConfigCode struct {
     8  	Config      bool
     9  	Code        bool
    10  	Branch      string
    11  	ProjectPath string
    12  	ProjectID   string
    13  }
    14  
    15  func (b BuildLocalConfigCode) Execute() error {
    16  	return Execute([]string{
    17  		"inject", "buildLocalProject",
    18  		"--config", strconv.FormatBool(b.Config),
    19  		"--code", strconv.FormatBool(b.Code),
    20  		"--branch", b.Branch,
    21  		"--path", b.ProjectPath,
    22  		"--project-id", b.ProjectID,
    23  	}...)
    24  }