MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / merge_instructions

Method merge_instructions

crates/opencode-session/src/instruction.rs:506–512  ·  view source on GitHub ↗
(instructions: &[InstructionFile])

Source from the content-addressed store, hash-verified

504 }
505
506 pub fn merge_instructions(instructions: &[InstructionFile]) -> String {
507 instructions
508 .iter()
509 .map(|i| format!("Instructions from: {}\n{}", i.path, i.content))
510 .collect::<Vec<_>>()
511 .join("\n\n")
512 }
513
514 pub fn find_instruction_files(dir: &Path) -> Vec<PathBuf> {
515 let mut files = Vec::new();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected