mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 00:15:41 -08:00
17 lines
657 B
Markdown
17 lines
657 B
Markdown
# Keeping Attachments
|
|||
|
|
|
||
|
|
Part of the web console contract (`console.md`). Read when a file you write
|
||
|
|
under `specs/<idea>/` cites a note's attachment.
|
||
|
|
|
||
|
|
Note attachments are swept with the session. Before a file under `specs/<idea>/`
|
||
|
|
cites one, keep it:
|
||
|
|
|
||
|
|
```
|
||
|
|
node "<CONSOLE>" keep --session <sid> --upload <path> --name <name> --spec specs/<idea> --from <the file you are writing>
|
||
|
|
```
|
||
|
|
|
||
|
|
It prints `{ ok, path, link, image, reused }`: paste `link` as it is
|
||
|
|
(`` for an image, `[name](link)` otherwise) and name the kept file
|
||
|
|
in your next update. Uncited and Quick-question attachments stay where they
|
||
|
|
are. Exit 3 means refused: say so, link nothing.
|
||
|
|
|