use super::super::{CommandError, write_content};
use knowledge_base_crud::KnowledgeBase;
use knowledge_base_models::EntityId;
use std::process::ExitCode;
pub fn execute(knowledge_base: &KnowledgeBase, id: &EntityId) -> Result<ExitCode, CommandError> {
write_content(&knowledge_base.entity_contexts().read(id)?)
}