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

The client's host commands, as a session runs them (spec 6 §14). More...

#include <interpreter.hpp>

Public Attributes

std::set< std::string, std::less<> > available
 The commands the client can run now; {"can": "host:name"} is true for these.
std::function< HostCommandResult(std::string const &name, Value const &args)> run
 Runs a command with its evaluated args (null when the document gives none).

Detailed Description

The client's host commands, as a session runs them (spec 6 §14).

Definition at line 876 of file interpreter.hpp.

Member Data Documentation

◆ available

std::set<std::string, std::less<> > morph::ui::HostCommands::available

The commands the client can run now; {"can": "host:name"} is true for these.

Definition at line 878 of file interpreter.hpp.

◆ run

std::function<HostCommandResult(std::string const& name, Value const& args)> morph::ui::HostCommands::run

Runs a command with its evaluated args (null when the document gives none).

Definition at line 880 of file interpreter.hpp.


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