Lead status tool
This commit is contained in:
@@ -37,6 +37,7 @@ type Manager struct {
|
||||
worktreeRoot string
|
||||
leadRoot string
|
||||
codexHome string
|
||||
status func(context.Context) (api.Status, error)
|
||||
|
||||
mu sync.Mutex
|
||||
live map[string]*live
|
||||
@@ -112,12 +113,13 @@ func (l *live) implementer() bool {
|
||||
return l.owner == "" && l.reviewID == ""
|
||||
}
|
||||
|
||||
func New(st *store.Store, worktreeRoot, leadRoot, codexHome string) *Manager {
|
||||
func New(st *store.Store, worktreeRoot, leadRoot, codexHome string, status func(context.Context) (api.Status, error)) *Manager {
|
||||
m := &Manager{
|
||||
store: st,
|
||||
worktreeRoot: worktreeRoot,
|
||||
leadRoot: leadRoot,
|
||||
codexHome: codexHome,
|
||||
status: status,
|
||||
live: map[string]*live{},
|
||||
starting: map[string]*start{},
|
||||
deliverLocks: map[string]*sessionLock{},
|
||||
|
||||
Reference in New Issue
Block a user