Register binds all command handlers to the http mux.
GET <prefix>/ -> commands listing index page.
GET <prefix>/{command} -> command page.
GET <prefix>/{command}/ws -> websocket for command inputs handling.
type Command struct {
// Name of the command, will be used as the url to execute the command Name string// Args of the the command Args []string// Description of the command Description string// Writable indicate whether server should process inputs from clients Writable bool// AuthCheck acts as pre-verification step before starts agent process AuthCheck auth.AuthCheck
}