From 2b28ee919614d5ddaceda26ce488a0ca4c851cb3 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 29 Apr 2026 01:30:12 +0200 Subject: simplify the contracts --- runner/python/proj.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'runner/python/proj.go') 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 { -- cgit v1.3.1