Skip to main content

oxide_cli/
lib.rs

1pub mod addons;
2pub mod auth;
3pub mod cache;
4pub mod cli;
5pub mod config;
6pub mod paths;
7pub mod templates;
8pub mod utils;
9
10use std::{
11  path::PathBuf,
12  sync::{Arc, Mutex},
13};
14
15use reqwest::Client;
16
17use crate::paths::OxidePaths;
18
19pub const BACKEND_URL: &str = "https://oxide-server.onrender.com";
20pub const FRONTEND_URL: &str = "https://oxide-cli.vercel.app";
21
22pub type CleanupState = Arc<Mutex<Option<PathBuf>>>;
23
24pub struct AppContext {
25  pub paths: OxidePaths,
26  pub client: Client,
27  pub cleanup_state: CleanupState,
28}