Skip to content
docsv0.37.1

HouseCli

The CLI as a person types it to reach THIS house — asked of the house, never decided here. In the Desktop the house lives in a container, so `php bin/coa …` runs only after `docker exec -it <container>`. The process that serves the house declares that way in and `milpa/app-runtime` builds every command it hands a person from `Capabilities::cli()` (greenhouse decisions/0559, E5). The panel kept its own copies of a handful of commands — the *Plugins* command form, the House section's next move, the Identity note, two refusals — and they went on saying `php bin/coa` (greenhouse decisions/0560). 🚨 ONE JUDGE. What a declared way in may be — no line break, no `;`, no `$`, 200 characters — is app-runtime's judgement. This class reads no environment variable: a second reader would be a second filter, and the one that forgets a character is the one somebody copies a line from. The panel does not depend on app-runtime, so the class is named by string, as {@see Data\PluginsSource} and {@see Data\FrameworkFacts} name it. With no app-runtime, or one from before it could say, the answer is `php bin/coa ` and every text is returned as it was given.

HouseCli::cli()

public static function cli(string $source = self::SOURCE): string

The CLI as a person types it here: what `$source::cli()` answers, or {@see self::PLAIN}.

Parameters

Parameters of cli()
NameTypeDescription
$sourcestringthe class asked; the default is the house's own

HouseCli::reached()

public static function reached(string $text, string $source = self::SOURCE): string

A text a person reads, with every command in it starting the way this house is reached. The texts stay written with {@see self::PLAIN}: a command is not translatable copy, and it is the same in every locale. With no way in declared this returns `$text` byte for byte.

Parameters

Parameters of reached()
NameTypeDescription
$textstring
$sourcestringthe class asked; the default is the house's own