Skip to main content

Crate gitfox_client

Crate gitfox_client 

Source
Expand description

gitfox-client — a Rust client for the GitFox API.

This crate knows about HTTP and about GitFox. It knows nothing about terminals, tables, exit codes or configuration files. That separation is what lets fx (the CLI) and, later, fx-mcp (the MCP server) share one implementation instead of the MCP server shelling out to the CLI.

use gitfox_client::GitFoxClient;

let client = GitFoxClient::builder("https://git.example.com")
    .token(Some("…".to_string()))
    .build()?;
let user = client.auth().current_user().await?;
println!("{}", user.label());

Re-exports§

pub use client::DEFAULT_RETRIES;
pub use client::DEFAULT_TIMEOUT_SECS;
pub use client::GitFoxClient;
pub use client::GitFoxClientBuilder;
pub use client::Query;
pub use client::RawResponse;
pub use client::is_retryable_method;
pub use error::Error;
pub use error::Result;
pub use models::Check;
pub use models::CiStatus;
pub use models::CreatePullRequest;
pub use models::Execution;
pub use models::FileDiff;
pub use models::LogLine;
pub use models::MergeMethod;
pub use models::MergePullRequest;
pub use models::MergeResult;
pub use models::Pipeline;
pub use models::Principal;
pub use models::PullRequest;
pub use models::PullRequestCheck;
pub use models::PullRequestChecks;
pub use models::PullRequestState;
pub use models::PullRequestStats;
pub use models::RepoRef;
pub use models::Repository;
pub use models::Stage;
pub use models::Step;
pub use models::User;
pub use pull_request::PullRequestFilter;
pub use repo::RepoSort;

Modules§

auth
Authentication endpoints.
client
The HTTP client every other module and both front-ends (CLI, and later MCP) go through.
error
Typed errors for the GitFox API client.
models
Domain models owned by the client.
pipeline
Pipeline / CI endpoints.
principal
Principal (user / service account) lookup.
pull_request
Pull request endpoints.
repo
Repository endpoints.

Structs§

Method
The Request Method (VERB)