mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
10 lines
313 B
Go
10 lines
313 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
|
|
}
|