github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/starlib/starlarkrule/actions.go (about) 1 package starlarkrule 2 3 import ( 4 "github.com/emcfarlane/larking/starlib/starext" 5 "go.starlark.net/starlark" 6 "go.starlark.net/starlarkstruct" 7 ) 8 9 // actions are embedded rule implementations. 10 11 var actionsModule = &starlarkstruct.Module{ 12 Name: "actions", 13 Members: starlark.StringDict{ 14 "archive": archiveModule, 15 "container": containerModule, 16 "label": starext.MakeBuiltin("label", MakeLabel), 17 "run": starext.MakeBuiltin("run", run), 18 }, 19 } 20 21 func Actions() *starlarkstruct.Module { return actionsModule }