pub struct AcpCliConfig {
pub default_agent: Option<String>,
pub default_permissions: Option<PermissionMode>,
pub timeout: Option<u64>,
pub format: Option<String>,
pub agents: Option<HashMap<String, AgentOverride>>,
pub auth_token: Option<String>,
}Fields§
§default_agent: Option<String>§default_permissions: Option<PermissionMode>§timeout: Option<u64>§format: Option<String>§agents: Option<HashMap<String, AgentOverride>>§auth_token: Option<String>Anthropic auth token for Claude agent authentication.
Set via acp-cli init or manually in ~/.acp-cli/config.json.
Implementations§
Source§impl AcpCliConfig
impl AcpCliConfig
Sourcepub fn load_project(cwd: &Path) -> Self
pub fn load_project(cwd: &Path) -> Self
Load a project-level config by walking from cwd up to the git root
and reading .acp-cli.json there. Returns Default if not found.
pub fn load_from(path: impl AsRef<Path>) -> Self
Sourcepub fn merge(self, project: AcpCliConfig) -> AcpCliConfig
pub fn merge(self, project: AcpCliConfig) -> AcpCliConfig
Merge project config on top of global. Project wins for non-None fields.
Trait Implementations§
Source§impl Clone for AcpCliConfig
impl Clone for AcpCliConfig
Source§fn clone(&self) -> AcpCliConfig
fn clone(&self) -> AcpCliConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcpCliConfig
impl Debug for AcpCliConfig
Source§impl Default for AcpCliConfig
impl Default for AcpCliConfig
Source§fn default() -> AcpCliConfig
fn default() -> AcpCliConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AcpCliConfig
impl<'de> Deserialize<'de> for AcpCliConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AcpCliConfig
impl RefUnwindSafe for AcpCliConfig
impl Send for AcpCliConfig
impl Sync for AcpCliConfig
impl Unpin for AcpCliConfig
impl UnsafeUnpin for AcpCliConfig
impl UnwindSafe for AcpCliConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more