From 756ae621bd97a8b776fefb15e5e7e2292f98ee45 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 9 Jul 2026 00:14:33 +0300 Subject: dependencies --- api/resource.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api/resource.go') diff --git a/api/resource.go b/api/resource.go index e254e1b..5c95211 100644 --- a/api/resource.go +++ b/api/resource.go @@ -10,6 +10,10 @@ import ( type Resource interface { ID() string String() string + // Dependencies returns the flattened resource IDs this value represents, + // so it can be passed to the DependsOn option. A single resource yields + // its own ID; a Multi yields the IDs of all its members. + Dependencies() []string } func Apply() error { -- cgit v1.2.3