Files
shinyobjectz 822b73fc7d PJ9: controllers are gone; a standing rule is a taste line
A taste line's check now takes any of raea's checks by name or a project's
own .ts check by path, with values and a level, beside the six forms. raea
check reads the project's own taste.ts beside the person's and the
workspace's, and raea context prints it.

Removed: the controller schema, raea controller, raea spec --as controller,
[controller] overrides in .raea/project, the registry's controller kind and
its lints, controllers/ in new projects and shared/, and controller() in
raea/brief. raea controller and raea doctor say where a controller's parts
go; doctor moves or deletes nothing. The direction proof's five rules are
lines in its taste.ts and it passes as before.
2026-11-20 13:00:19 -08:00

44 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "raea workspace"
summary: "Make, adopt or show a workspace: the git repository that holds a studio's projects and house taste."
order: 23
sources: ["apps/workspace/src/workspace.rs"]
---
A workspace is a git repository, one per studio or client, under your raea root (`~/Documents/raea` unless
`git config raea.root` says otherwise). It holds projects and the house taste in `taste.ts`. Every
change raea makes in it is a commit.
```sh
raea workspace init acme # a new workspace, ~/Documents/raea/acme
raea workspace adopt ~/clients/acme # an existing folder made a workspace in place
raea workspace --json # the current workspace, its projects and their paths
```
`adopt` moves and deletes nothing: it makes the folder a git repository if it isn't one, and registers each folder
holding a `brief.ts` as a project. `raea workspace init` inside a cloned workspace sets it up again on that machine.
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
## Usage
```sh
raea workspace init [NAME] [--layout LAYOUT] | raea workspace adopt DIR [--name NAME] | raea workspace [--json] (a workspace: a git repo of projects under raea.root, ~/Documents/raea unless git config says)
```
Headless: it needs nothing running and opens no window. Takes up to 2 arguments besides its flags.
## Flags
| Flag | Takes | What it does |
| --- | --- | --- |
| `--json` | – | Print the workspace as JSON: its name, layout, projects and their paths. |
| `--layout` | `LAYOUT` | How its projects are stored: `monorepo` (folders in the workspace's own history, the default) or `submodules` (each project a repository of its own). |
| `--name` | `NAME` | With `adopt`: the workspace's name, in place of the folder's. |
<!-- generated:end -->
## See also
- [Workspaces and projects](../../concepts/workspaces.md) explains what lives where.