mirror of
https://github.com/safing/portbase
synced 2025-04-10 20:49:09 +00:00
8 lines
308 B
Go
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
|
|
}
|