radicle-heartwood-lfs/radicle-cli/src
cloudhead 534503d002
cob: Add support for media embeds in COBs
This change allows for files (blobs) to be embedded into COB entries.
This allows for things like image attachments in issue comments for example.

For now, we only enable this in the `issue` COB.

The way it works is that relevant COB actions carry metadata about which
files are attached to them; and we store those files as blobs inside the
COB entry's *tree* object, under an `embeds/` folder.

The `Embed<T>` type is used for the above, and either carries actual
content, or carries a content-id. Retrieving the actual content is as
simple as asking the repository for a blob with that content-id.

As a possible future extension, MIME types could be stored alongside the
files in a "metadata" file. This could help clients display the content
appropriately.
2023-08-22 14:29:23 +02:00
..
commands cob: Add support for media embeds in COBs 2023-08-22 14:29:23 +02:00
git cli: Refactor git diff encoding 2023-08-04 12:45:53 +02:00
terminal cli: Add `--timeout` and `--count` to `node events` 2023-08-04 12:23:58 +02:00
commands.rs cli: New `cob` command for debugging 2023-08-18 10:54:27 +02:00
git.rs cli: Refactor git diff encoding 2023-08-04 12:45:53 +02:00
lib.rs Move CLI command tests to integration tests 2022-12-06 10:01:41 +01:00
main.rs cli: New `cob` command for debugging 2023-08-18 10:54:27 +02:00
project.rs cli: Consolidate working copy remote setup 2023-06-13 11:09:42 +02:00
terminal.rs node: Make node aliases required 2023-07-11 18:08:59 +02:00