summaryrefslogtreecommitdiff
path: root/pkg/packages.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-23 14:50:37 +0100
committerJulien Dessaux2024-03-24 09:58:15 +0100
commiteb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb (patch)
treeb7d8bfca9d583fb6a555a73cda36d0c940dd692e /pkg/packages.go
parentfeat(custom): implemented custom promises (diff)
downloadgonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.gz
gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.bz2
gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.zip
chore(promises): make a Status function part of the Promise interface
Diffstat (limited to '')
-rw-r--r--pkg/packages.go4
1 files changed, 4 insertions, 0 deletions
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