Add compression to build CLI

Also handle how concurrency is set now.

Adds also an accessor to compiler to set the desired compression type

Refers to #33
This commit is contained in:
Ettore Di Giacinto
2019-12-30 14:52:34 +01:00
parent 475b63be95
commit f71c9937c4
3 changed files with 12 additions and 3 deletions

View File

@@ -65,6 +65,10 @@ func (cs *LuetCompiler) SetConcurrency(i int) {
cs.Concurrency = i
}
func (cs *LuetCompiler) SetCompressionType(t CompressionImplementation) {
cs.CompressionType = t
}
func (cs *LuetCompiler) compilerWorker(i int, wg *sync.WaitGroup, cspecs chan CompilationSpec, a *[]Artifact, m *sync.Mutex, concurrency int, keepPermissions bool, errors chan error) {
defer wg.Done()