pub fn build_pack<P: AsRef<Path>, Q: AsRef<Path>>(
input_dir: P,
output_file: Q,
) -> Result<()>Expand description
Build a .ccpack file from a directory
§Arguments
input_dir- Path to the directory containing pack.toml, cards/, scripts/, etc.output_file- Path where the .ccpack file will be written
§Returns
Result indicating success or detailed error
§Process
- Validate that pack.toml exists and parse it
- Walk directory and collect all valid files (sorted)
- Compute SHA-256 for each file
- Generate manifest.toml
- Create tar archive with all files + manifest
- Compress with zstd