github.com/safing/portbase@v0.19.5/modules/cmd.go (about) 1 package modules 2 3 var cmdLineOperation func() error 4 5 // SetCmdLineOperation sets a command line operation to be executed instead of starting the system. This is useful when functions need all modules to be prepared for a special operation. 6 func SetCmdLineOperation(fn func() error) { 7 cmdLineOperation = fn 8 }