def show
near-v-framework@0.4.0.0 · domain/architecture/system/plan/ops.bend:102
import near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P
102def show(s: P.Step) -> String:
103 match s:
104 case P.Current{w}:
105 "current " ++ w
106 case P.Publish{n, v, _}:
107 "publish " ++ n ++ "@" ++ v
108 case P.Push{r}:
109 "push github " ++ r
110 case P.ReleasePlugin{+n, +v, r, create}:
111 "release plugin " ++ n ++ "@" ++ v ++ " to marketplace github " ++ r ++ " as tag " ++ n ++ "-v" ++ v ++ Bool.pick(String, create, " (a new repository)", "")
112 case P.Rebuild{h, _, _}:
113 "rebuild nix-darwin " ++ h
114 case P.ServePort{p, t, _}:
115 "serve :" ++ U32.show(p) ++ " -> " ++ t
116 case P.Change{w, now, want}:
117 "change " ++ w ++ ": " ++ now ++ " -> " ++ want
118 case P.Blocked{w, why}:
119 "blocked " ++ w ++ ": " ++ why