diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-29 01:30:12 +0200 |
| commit | 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 (patch) | |
| tree | df9a9af3f6b37165c9522eefea8456aa1baea9d5 /runner/python/proj.go | |
| parent | 19f68366eb4a2c01f801b29585fd0a36bdf47488 (diff) | |
simplify the contracts
Diffstat (limited to 'runner/python/proj.go')
| -rw-r--r-- | runner/python/proj.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/runner/python/proj.go b/runner/python/proj.go index 9a711bd..1230b1c 100644 --- a/runner/python/proj.go +++ b/runner/python/proj.go @@ -12,16 +12,20 @@ type Project struct { Cmd string } +func (p *Project) File(src *model.Source) string { + return Python.files[src.Path] +} + type Hydrated struct { runner.BaseHydration[*Project] } -func (h *Hydrated) Icon() string { - return "\uE606" +func (h *Hydrated) Description(src *model.HydratedSource) string { + return h.Self.Cmd } -func (h *Hydrated) Description() string { - return h.BaseTarget.Cmd +func (h *Hydrated) Icon() string { + return "\uE606" } func (p *Project) Create(s *model.Source) *exec.Cmd { |
