aerc/commands/global.go
Moritz Poldrack aaf0a0c656 lint: apply new formatting rules
Run `make fmt`.

Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-08-01 10:44:52 +02:00

10 lines
173 B
Go

package commands
var GlobalCommands *Commands
func register(cmd Command) {
if GlobalCommands == nil {
GlobalCommands = NewCommands()
}
GlobalCommands.Register(cmd)
}