func (r *RunningCommand) Done() {
	r.wg.Done()
}
Done will finish the sync.WaitGroup and releases the lock for Done()
package queue
import (
	"sync"
)
var runningCommands = map[string]*RunningCommand{}
type RunningCommand struct {
	wg sync.WaitGroup
}
func (r *RunningCommand) Wait() {
	r.wg.Wait()
}