diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-15 09:57:18 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-15 09:57:18 +0200 |
| commit | 2f90f4b60cd50f7e9649daaf8e76a120e608cff6 (patch) | |
| tree | 9d3724602959b05602f7fadb8a45bd26d0fc9b91 /packages/meshbay-cli/src/meshbay_cli/manpage.py | |
| parent | 5044bdfdfffceceecc0d92a776983ad361079839 (diff) | |
| download | meshbay-2f90f4b60cd50f7e9649daaf8e76a120e608cff6.tar.gz | |
feat(cli): /put and /get in the interactive chat
/put FILE sends one local file, relative to the current directory or
absolute, into the chat's folder, then posts the application's attachment
message naming it ({"text": "", "attachment": {filename, size, type}}), so
the page shows it as its paperclip's. /get NAME saves a file of that folder,
named from it, into the current directory, never over a file already there.
The chat's folder is the page's rule: the operator's choice while its root
is writable and present, else the first such root; a chat_directory_ack
moves it. A line above the one written in shows the transfer's progress.
Attachment messages, from the page or from /put, read as [file: name, size]
in the room and in `chat`, and as an `attachment` field with --json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-cli/src/meshbay_cli/manpage.py')
| -rw-r--r-- | packages/meshbay-cli/src/meshbay_cli/manpage.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/manpage.py b/packages/meshbay-cli/src/meshbay_cli/manpage.py index d40e479..601bd5b 100644 --- a/packages/meshbay-cli/src/meshbay_cli/manpage.py +++ b/packages/meshbay-cli/src/meshbay_cli/manpage.py @@ -257,6 +257,15 @@ A right-click copies the text selected with the mouse, else the line under the pointer, and pastes into the line written in: the system clipboard's text, read with the platform's tool (wl\-paste, xclip or xsel, pbpaste, PowerShell), else what was copied here last. +.B /put +\fIFILE\fR sends one local file, relative to the current directory or absolute, +into the chat's folder and names it in the conversation, as the application's +paperclip does; +.B /get +\fINAME\fR saves a file of that folder, named from it, into the current +directory. +The chat's folder is the one the group's operator chose for it while its root +accepts uploads and is present, else the group's first such root. .PP .B browser\-access on makes this machine leave, on each node it opens a group on, a copy of its keys |