morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::client::Args Struct Reference

What the generic client reads from its command line. More...

#include <args.hpp>

Public Attributes

std::optional< std::string > server
 --server URL: the server to fetch the screens from.
std::optional< std::string > app
 --app NAME: the linked application to run in-process.
std::string db
 --db PATH: the database a local application opens.
std::string user
 --user NAME: the development principal a local application signs in.
std::string screen
 --screen ID: the screen mounted first; empty for the catalog's first.
bool exitAfterMount = false
 --exit-after-mount: quit once the first screen mounted, with 0 when it mounted cleanly.
bool dev = false
 --dev, or MORPH_UI_DEV=1: development mode, which reloads the screens when the server's documents change (spec 5 §12). A client built without the development tools ignores it.

Detailed Description

What the generic client reads from its command line.

Definition at line 17 of file args.hpp.

Member Data Documentation

◆ server

std::optional<std::string> morph::client::Args::server

--server URL: the server to fetch the screens from.

Definition at line 19 of file args.hpp.

◆ app

std::optional<std::string> morph::client::Args::app

--app NAME: the linked application to run in-process.

Definition at line 21 of file args.hpp.

◆ db

std::string morph::client::Args::db

--db PATH: the database a local application opens.

Definition at line 23 of file args.hpp.

◆ user

std::string morph::client::Args::user

--user NAME: the development principal a local application signs in.

Definition at line 25 of file args.hpp.

◆ screen

std::string morph::client::Args::screen

--screen ID: the screen mounted first; empty for the catalog's first.

Definition at line 27 of file args.hpp.

◆ exitAfterMount

bool morph::client::Args::exitAfterMount = false

--exit-after-mount: quit once the first screen mounted, with 0 when it mounted cleanly.

Definition at line 29 of file args.hpp.

◆ dev

bool morph::client::Args::dev = false

--dev, or MORPH_UI_DEV=1: development mode, which reloads the screens when the server's documents change (spec 5 §12). A client built without the development tools ignores it.

Definition at line 32 of file args.hpp.


The documentation for this struct was generated from the following file: