mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
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.
35 lines
1.4 KiB
Markdown
35 lines
1.4 KiB
Markdown
---
|
||
title: "raea part"
|
||
summary: "The old name of raea component: copy a ready-made component into the project's components/, to use and change as your own."
|
||
order: 27
|
||
sources: ["engine/cli/src/index.ts", "engine/cli/src/registry.gen.ts"]
|
||
---
|
||
|
||
`raea part` is the old name of [`raea component`](component.md), and still works the same. `raea part list` shows
|
||
the ready-made components; `raea part add` copies one into `components/NAME/`, where it's yours: raea never updates
|
||
or overwrites it unasked.
|
||
|
||
```sh
|
||
raea part list
|
||
raea part add captions end-card
|
||
```
|
||
|
||
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
||
|
||
## Usage
|
||
|
||
```sh
|
||
raea component list | raea component add NAME ... [--shared] [--force] | raea part list | raea part add NAME ... [--shared] [--force] (a ready component or set copied into components/, or the workspace's shared/components/ with --shared, yours to change; raea part is its old name)
|
||
```
|
||
|
||
Headless: it needs nothing running and opens no window. Takes any number of arguments besides its flags.
|
||
|
||
## Flags
|
||
|
||
| Flag | Takes | What it does |
|
||
| --- | --- | --- |
|
||
| `--force` | – | Replace a part's files that are already in `components/`. Without it, an existing part is left alone and the command stops. |
|
||
| `--shared` | – | Copy into the workspace's `shared/components/` instead, where every project in the workspace imports it as `/components/NAME`. |
|
||
|
||
<!-- generated:end -->
|