summaryrefslogtreecommitdiff
path: root/model/source.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-06-02 15:07:59 +0200
committerewy <ewy0@protonmail.com>2026-06-02 15:07:59 +0200
commitf77fc4ef5f2df96c6bba3cd6c7d88a77d61a5a80 (patch)
treebdead2d2b245407aaa20e71c433d7c8f757d7049 /model/source.go
parent6d607f114f63184a43237a3ff80aee622401ee23 (diff)
add .wants and .includesHEADmaster
.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
Diffstat (limited to 'model/source.go')
-rw-r--r--model/source.go10
1 files changed, 10 insertions, 0 deletions
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