This commit is contained in:
17
cmd/invoicer/cmd.go
Normal file
17
cmd/invoicer/cmd.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
type cmd struct {
|
||||
cmd func(any)
|
||||
config any
|
||||
}
|
||||
|
||||
func (c *cmd) Run() {
|
||||
c.cmd(c.config)
|
||||
}
|
||||
|
||||
var commands = map[string]cmd{
|
||||
"config": {
|
||||
config,
|
||||
nil,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user