You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create and give execution permission to this script (or do your own):
#!/bin/bash
# Function to generate the key-value pairs
generate_key_value_pairs() {
local n=$1
local pairs=""
for ((i=1; i<=n; i++)); do
if [[ $i -eq $n ]]; then
pairs+="key$i=value$i"
else
pairs+="key$i=value$i,"
fi
done
echo $pairs
}
# Check if the correct number of arguments is provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 N file.mcap"
exit 1
fi
# Number of key-value pairs and the file
N=$1
METADATA_NAME=$2
FILE=$3
# Generate the key-value pairs
KEY_VALUE_PAIRS=$(generate_key_value_pairs $N)
# Construct and run the command
COMMAND="mcap add metadata -k \"$KEY_VALUE_PAIRS\" -n $METADATA_NAME $FILE"
echo "Running command: $COMMAND"
eval $COMMAND
Run it like: ./script.sh 10000 name_of_metadata your_file.mcap
Run mcap list metadata your_file.mcap
It doesn't show nothing:
Expected Behavior
It was expected it shows the table with the metadata, at least it could trim it and show only a part of it.
Running mcap get metadata -n name_of_metadata your_file.mcapor mcap get metadata -n name_of_metadata your_file.mcap | wc -l shows that it really added, but the mcap list metadata shows nothing.
The text was updated successfully, but these errors were encountered:
Description
Steps To Reproduce
mcap list metadata your_file.mcap
Run it like:
./script.sh 10000 name_of_metadata your_file.mcap
Run
mcap list metadata your_file.mcap
It doesn't show nothing:
Expected Behavior
It was expected it shows the table with the metadata, at least it could trim it and show only a part of it.
Running
mcap get metadata -n name_of_metadata your_file.mcap
ormcap get metadata -n name_of_metadata your_file.mcap | wc -l
shows that it really added, but themcap list metadata
shows nothing.The text was updated successfully, but these errors were encountered: