Class ClientApp#

Class Documentation#

class ClientApp#

Manages a karana-webui electron client instance.

Public Functions

ClientApp(std::string_view url, const std::vector<std::string> &extra_args = {})#

ClientApp constructor.

Parameters:
  • url – The server url to connect to

  • extra_args – Additional CLI arguments

~ClientApp()#

ClientApp destructor.

ClientApp(const ClientApp&) = delete#
ClientApp &operator=(const ClientApp&) = delete#
void shutdown()#

Idempotently close the app.

std::string getStdout() const#

Get a buffer containing the app’s stdout.

Returns:

The stdout buffer

std::string getStderr() const#

Get a buffer containing the app’s stderr.

Returns:

The stderr buffer

Public Static Functions

static std::filesystem::path findExecutable()#

Find the full path of the karana-webui executable.

Returns:

The absolute path or empty if not found