fix: update doctests for mergegate_core rename
This commit is contained in:
parent
9452de9eca
commit
861b108ecd
4 changed files with 6 additions and 6 deletions
|
|
@ -39,7 +39,7 @@ pub struct ApprovalRequest {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use miyabi_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision};
|
/// use mergegate_core::agent::{ApprovalCallback, ApprovalRequest, ApprovalDecision};
|
||||||
/// use async_trait::async_trait;
|
/// use async_trait::async_trait;
|
||||||
///
|
///
|
||||||
/// struct AutoApprover;
|
/// struct AutoApprover;
|
||||||
|
|
@ -49,7 +49,7 @@ pub struct ApprovalRequest {
|
||||||
/// async fn request_approval(&self, request: &ApprovalRequest) -> ApprovalDecision {
|
/// async fn request_approval(&self, request: &ApprovalRequest) -> ApprovalDecision {
|
||||||
/// // Auto-approve low risk tools
|
/// // Auto-approve low risk tools
|
||||||
/// match request.risk_level {
|
/// 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())),
|
/// _ => ApprovalDecision::Rejected(Some("Manual approval required".to_string())),
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
//! # Examples
|
//! # Examples
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! use miyabi_core::feature_flags::FeatureFlagManager;
|
//! use mergegate_core::feature_flags::FeatureFlagManager;
|
||||||
//!
|
//!
|
||||||
//! let manager = FeatureFlagManager::new();
|
//! let manager = FeatureFlagManager::new();
|
||||||
//! manager.set_flag("new_architecture", true);
|
//! manager.set_flag("new_architecture", true);
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ use std::path::{Path, PathBuf};
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use miyabi_core::git::find_git_root;
|
/// use mergegate_core::git::find_git_root;
|
||||||
///
|
///
|
||||||
/// let root = find_git_root(None)?;
|
/// let root = find_git_root(None)?;
|
||||||
/// println!("Git root: {:?}", root);
|
/// 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> {
|
pub fn find_git_root(start_path: Option<&Path>) -> Result<PathBuf> {
|
||||||
let search_path = match start_path {
|
let search_path = match start_path {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! use miyabi_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult};
|
//! use mergegate_core::plugin::{Plugin, PluginManager, PluginMetadata, PluginContext, PluginResult};
|
||||||
//! use anyhow::Result;
|
//! use anyhow::Result;
|
||||||
//!
|
//!
|
||||||
//! struct MyPlugin;
|
//! struct MyPlugin;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue