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

     1  package dreamLib
     2  
     3  func (c *CompileForDFunc) Execute() error {
     4  	args := []string{
     5  		"inject", "compileFor",
     6  		"--project-id", c.ProjectId,
     7  		"--resource-id", c.ResourceId,
     8  		"--branch", c.Branch,
     9  		"--call", c.Call,
    10  		"--path", c.Path,
    11  	}
    12  
    13  	if len(c.ApplicationId) > 0 {
    14  		args = append(args, []string{"--application-id", c.ApplicationId}...)
    15  	}
    16  
    17  	return Execute(args...)
    18  }