From f77fc4ef5f2df96c6bba3cd6c7d88a77d61a5a80 Mon Sep 17 00:00:00 2001 From: ewy Date: Tue, 2 Jun 2026 15:07:59 +0200 Subject: add .wants and .includes .wants adds potential out-of-tree sources to your state (for monorepos, for example) .includes adds targets from another source to this one, adding inheritance --- model/source.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model/source.go') diff --git a/model/source.go b/model/source.go index 246929e..2844d23 100644 --- a/model/source.go +++ b/model/source.go @@ -6,10 +6,20 @@ import ( "github.com/ewy1/pik/spool" ) +// SourceData is data we want to save from a Source before it has been properly instantiated +type SourceData struct { + Aliases []string + Icon string + Path string + Wants []string + Includes []string +} + // Source is a location containing stuff we can run // these get created when we find a makefile, .pik folder, etc. type Source struct { identity.Identity + SourceData Tags Path string Targets []Target -- cgit v1.3.1