Files
cloudpods/pkg/util/shellutils/shell.go

15 lines
313 B
Go

package shellutils
type CMD struct {
Options interface{}
Command string
Desc string
Callback interface{}
}
var CommandTable = make([]CMD, 0)
func R(options interface{}, command string, desc string, callback interface{}) {
CommandTable = append(CommandTable, CMD{options, command, desc, callback})
}