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

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