Ops.plugin_step: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend as Ops Lines 58-68 of near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/ops.bend&start_line=58&end_line=68 import Base import near-v-framework@0.4.0.0/domain/architecture/system/release/type.bend as Rl import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P # ---- each plugin: released as it builds, new, or changed without a new version ---- def plugin_step(g: Rl.Plugin, t: P.Tag) -> P.Step: match g t: case Rl.Plugin{+n, +v, _, _, Rl.Repository{+r, _}} P.Tag{repo, tagged, +built, differs}: +what = "plugin " ++ n ++ "@" ++ v Bool.pick(P.Step, String.is_empty(built), P.Blocked{what, "does not build"}, Bool.pick(P.Step, Bool.not(String.eq(built, v)), P.Blocked{what, "builds as version " ++ built}, Bool.pick(P.Step, Bool.not(repo), P.ReleasePlugin{n, v, r, True{}}, Bool.pick(P.Step, Bool.not(tagged), P.ReleasePlugin{n, v, r, False{}}, Bool.pick(P.Step, differs, P.Blocked{what, "changed since " ++ n ++ "-v" ++ v ++ " was released; give it a new version"}, P.Current{what}))))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend&name=Step https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend&name=Tag https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/release/type.bend&name=Plugin https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/release/type.bend&name=Repository