fix: update doctests for mergegate_core rename

This commit is contained in:
林 駿甫 (Shunsuke Hayashi) 2026-04-10 15:12:08 +09:00
parent 9452de9eca
commit 861b108ecd
4 changed files with 6 additions and 6 deletions

View file

@ -39,7 +39,7 @@ pub struct ApprovalRequest {
/// # Example
///
/// ```rust
/// use miyabi_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision};
/// use mergegate_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision};
/// use async_trait::async_trait;
///
/// struct AutoApprover;
@ -49,7 +49,7 @@ pub struct ApprovalRequest {
/// async fn request_approval(&self, request: &ApprovalRequest) -> ApprovalDecision {
/// // Auto-approve low risk tools
/// match request.risk_level {
/// miyabi_core::agent::RiskLevel::Low => ApprovalDecision::Approved,
/// mergegate_core::agent::RiskLevel::Low => ApprovalDecision::Approved,
/// _ => ApprovalDecision::Rejected(Some("Manual approval required".to_string())),
/// }
/// }

View file

@ -5,7 +5,7 @@
//! # Examples
//!
//! ```rust
//! use miyabi_core::feature_flags::FeatureFlagManager;
//! use mergegate_core::feature_flags::FeatureFlagManager;
//!
//! let manager = FeatureFlagManager::new();
//! manager.set_flag("new_architecture", true);

View file

@ -16,11 +16,11 @@ use std::path::{Path, PathBuf};
/// # Examples
///
/// ```no_run
/// use miyabi_core::git::find_git_root;
/// use mergegate_core::git::find_git_root;
///
/// let root = find_git_root(None)?;
/// println!("Git root: {:?}", root);
/// # Ok::<(), miyabi_core::error::Error>(())
/// # Ok::<(), mergegate_core::error::Error>(())
/// ```
pub fn find_git_root(start_path: Option<&Path>) -> Result<PathBuf> {
let search_path = match start_path {

View file

@ -5,7 +5,7 @@
//! # Example
//!
//! ```rust
//! use miyabi_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult};
//! use mergegate_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult};
//! use anyhow::Result;
//!
//! struct MyPlugin;