~sircmpwn/aerc

ref: 0.1.1 aerc/commands/global.go -rw-r--r-- 201 bytes
eabdcff8Jonas Kalderstam Added config file to Make clean 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
package commands

var (
	GlobalCommands *Commands
)

func register(name string, cmd AercCommand) {
	if GlobalCommands == nil {
		GlobalCommands = NewCommands()
	}
	GlobalCommands.Register(name, cmd)
}