def cleanup_selection

bendvy-ecs-core@0.1.0.3 · execution_command_permission.bend:54

import bendvy-ecs-core@0.1.0.3/execution_command_permission.bend as ExecutionCommandPermission
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout

54def cleanup_selection(-S:Data,-resources:Layout.Layout,value:Selection<S,resources>) -> Selection<S,resources>:
55  match value:
56    case Selection{program,snapshot,scopes,Unprovisioned{}}:Selection{program,snapshot,scopes,Unprovisioned{}}
57    case Selection{program,snapshot,scopes,CleanupActive{graphs,routes}}:Selection{program,snapshot,scopes,CleanupActive{graphs,routes}}
58    case Selection{_,_,_,Provisioned{program,snapshot,scopes,graphs,routes}}:Selection{program,snapshot,scopes,CleanupActive{graphs,routes}}

Uses (3)

Used by (2)