From eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 23 Mar 2024 14:50:37 +0100 Subject: chore(promises): make a Status function part of the Promise interface --- pkg/packages.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/packages.go') diff --git a/pkg/packages.go b/pkg/packages.go index 114a227..20d3e3d 100644 --- a/pkg/packages.go +++ b/pkg/packages.go @@ -63,6 +63,10 @@ func (p *PackagePromise) Resolve() { } } +func (p PackagePromise) Status() Status { + return p.status +} + // ----- Internal -------------------------------------------------------------- func resolvePackages() (status Status) { status = KEPT -- cgit v1.2.3