Shared Mission Control commands for the CLI, the web UI and the desktop shell
moon add moonrockz/mission-control-contracts| Path | Value |
|---|---|
| kb validate | Kb(Validate) |
| kb rules list, show, check, test | Kb(Rules(List)), ... |
| kb profiles list, show | Kb(Profiles(List)), ... |
| config show | Config(Show) |
| project add, remove, list, show | Project(Add), ... |
| workspace list, show, sources | Workspace(List), ... |
| Command | Request | Reply |
|---|---|---|
| app_info | EmptyRequest | AppInfo |
| list_projects | EmptyRequest | Array[Project] |
| add_project | AddProject | AddedProject |
| open_project | ProjectId | Project |
| remove_project | ProjectId | Project |
| show_project | ShownProject | Project |
| list_workspaces | ProjectId | ProjectWorkspaces |
| open_workspace | WorkspaceRef | Workspace |
| stop_app | EmptyRequest | Stopping |
| choose_folder | EmptyRequest | ChosenFolder |
| Event | Payload |
|---|---|
| projects_changed | Array[Project] |
| workspaces_changed | WorkspacesChanged |
| project_shown | ShownProject |
| app_stopping | Stopping |
| Type | Rule | JSON |
|---|---|---|
| InstanceName | 1 to 32 lower-case letters, digits and hyphens, with a letter at the start | "review-42" |
| ProjectId | RFC 8141 URN urn:mc:proj:<nss> (1 to 128 lower-case letters, digits and hyphens) | "urn:mc:proj:payments-a1b2c3d4" |
| WorkspaceId | RFC 8141 URN urn:mc:ws:<nss> (1 to 128 lower-case letters, digits and hyphens) | "urn:mc:ws:payments-billing-e5f60718" |
| BackendId | 1 to 64 lower-case letters, digits and hyphens, starting with a letter or digit | "git" |
| ProjectTitle | 1 to 120 characters, trimmed, single line, no control characters | "Payments Platform" |
| ProjectCaption | 1 to 240 characters, trimmed, single line, no control characters | "Billing services" |
| WorkspaceName | 1 to 120 characters, trimmed, single line, no control characters | "payments-billing" |
| LineName | 1 to 255 characters, no whitespace or control characters | "main" |
| RevisionId | 40 or 64 lower-case hexadecimal digits | "0123456789abcdef..." |
| UnixMillis | Milliseconds since 1970, from 0 | "1764720000000" |
pub(all) enum Command {
Help
Version
Kb(KbCommand)
Config(ConfigCommand)
Project(ProjectCommand)
Workspace(WorkspaceCommand)
Web
Desktop(DesktopCommand)
Status
Stop
Serve
Doctor
} derive(Eq, Debug)Install
Download zipShared Mission Control commands for the CLI, the web UI and the desktop shell