Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tensogram merge

Merge messages from one or more files into a single message.

Usage

tensogram merge [OPTIONS] --output <OUTPUT> [INPUTS]...

Options

OptionDescription
-o, --output <OUTPUT>Output file
-s, --strategy <STRATEGY>Merge strategy for conflicting metadata keys: first (default) — first value wins, last — last value wins, error — fail on conflict [default: first]
-h, --helpPrint help

Description

All data objects from all input messages are collected into a single Tensogram message. Global metadata is merged according to --strategy: first (default) keeps the first value, last keeps the last, and error fails on conflict.

Examples

# Merge two files into one
tensogram merge file1.tgm file2.tgm -o merged.tgm

# Merge all messages in a single multi-message file
tensogram merge multi.tgm -o single.tgm