summaryrefslogtreecommitdiff
path: root/model/source.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 22:06:24 +0200
committerewy <ewy0@protonmail.com>2026-04-22 22:06:24 +0200
commit1e8cedca4d03829fadd532e9c5980dbb0eeab4bb (patch)
tree90745c56ab9c3feec790ba001683a19f4e360eb8 /model/source.go
parentd88661935fa2b6e2c0fe93345800113e1a71b451 (diff)
docs
Diffstat (limited to 'model/source.go')
-rw-r--r--model/source.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/source.go b/model/source.go
index 29cff05..b7f28d4 100644
--- a/model/source.go
+++ b/model/source.go
@@ -6,6 +6,8 @@ import (
"pik/spool"
)
+// 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
Tags
@@ -13,6 +15,9 @@ type Source struct {
Targets []Target
}
+// HydratedSource is a Source with additional hydration
+// for the menu.
+// these do not get created unless we show the menu
type HydratedSource struct {
*Source
HydratedTargets []HydratedTarget