View Revisions: Issue #15817

Summary 15817: Refactor remote control handler into multiple files
Revision 2020-02-04 16:49 by ollehar
Description Each command should be a separate class and file.

E.g.

`class GetSessionKey extends RemoteCommand {}`

When calling a remote command, it will look for a file with that name, import it and execute it.

The file is too big now, ~3k lines.

It would also improve Scrutinizer scores.

One could also add extension points for plugins this way.

And maybe use same RemoteCommands for a future REST API.
Revision 2020-02-04 16:39 by ollehar
Description Each command should be a separate class and file.

E.g.

`class GetSessionKey extends RemoteCommand {}`

When calling a remote command, it will look for a file with that name, import it and execute it.

The file is too big now, ~3k lines.

It would also improve Scrutinizer scores.

One could also add extension points for plugins this way.
Revision 2020-02-04 16:39 by ollehar
Description Each command should be a separate class and file.

E.g.

`class GetSessionKey extends RemoteCommand {}`

When calling a remote command, it will look for a file with that name, import it and execute it.

The file is too big now, ~3k lines.