safing-portbase/modules/cmd.go
2022-02-01 13:12:46 +01:00

8 lines
308 B
Go

package modules
var cmdLineOperation func() error
// 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.
func SetCmdLineOperation(fn func() error) {
cmdLineOperation = fn
}