package shell import ( "git.sr.ht/~ewy/pik/describe" "git.sr.ht/~ewy/pik/model" "git.sr.ht/~ewy/pik/runner" "git.sr.ht/~ewy/pik/spool" ) type Hydrated struct { runner.BaseHydration[*Target] } func (h *Hydrated) Icon() string { return "\uF489" } func (h *Hydrated) Description(src *model.HydratedSource) string { desc, err := describe.Describe(h.Target(), h.Target().File(src.Source)) if err != nil { _, _ = spool.Warn("%v\n", err) return "" } return desc }