diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-17 00:00:40 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-17 00:00:40 +0200 |
| commit | 022072ce8bac114ea0a7b94132ed3b8630de2f90 (patch) | |
| tree | 199fb99ab9e242b6eb195c2b1180e58caa4303d6 /runner/shell/hydrated.go | |
| parent | fbdc2b9d849913ccf8dd7a9001012ce2d28cbd2f (diff) | |
* fix bug which prevented multiple sources from showing up in the tui at the same time
* add padding to bottom of sources
* add git status panel to bottom of tui
Diffstat (limited to 'runner/shell/hydrated.go')
| -rw-r--r-- | runner/shell/hydrated.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runner/shell/hydrated.go b/runner/shell/hydrated.go index e1f8892..7ead74c 100644 --- a/runner/shell/hydrated.go +++ b/runner/shell/hydrated.go @@ -1,7 +1,9 @@ package shell import ( + "errors" "pik/describe" + "pik/model" "pik/runner" "pik/spool" ) @@ -22,3 +24,14 @@ func (h *Hydrated) Description() string { } return desc } + +var WrongTargetError = errors.New("wrong target type") + +func (s *shell) Hydrate(target model.Target) (model.HydratedTarget, error) { + cast, ok := target.(*Target) + if !ok { + return nil, WrongTargetError + } + hyd := &Hydrated{BaseHydration: runner.Hydrated(cast)} + return hyd, nil +} |
