Skip to content
Commit ea5ed02c authored by Michael Pyne's avatar Michael Pyne
Browse files

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.
parent 00d9c269
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment