mojo: Add a backend-support class to allow headless ops.

Authored by mpyne on Sep 29 2018, 8:29 PM.

Description

mojo: Add a backend-support class to allow headless ops.

This adds a backend support class (BackendServer, no ksb:: prefix for
now since Mojolicious uses the basedir for this module to look for
supporting files, like the HTML/embedded Perl templates).

To use the backend, for now run kdesrc-build with only the option
--backend, which will start the server and output the URL to stdout.

This introduces another class as well (ksb::UserInterface::TTY) to serve
as the default user interface, and makes kdesrc-build the driver for
this interface (instead of the more generic ksb::Application). This uses
the backend interface directly as well, enforcing its normal use.

There's a lot more to do to refactor a clean separation between
model/controller and the user interface / "view" here, especially at the
TTY, but this code does at least work and I think it's a clean enough
foundation that all the heavy lifting should be done.

Details

Committed
mpyneOct 8 2018, 5:44 PM
Parents
R365:00d9c269d7c4: mojo: Remove dead code and improve comments.
Branches
Unknown
Tags
Unknown