Skip to main content

chronicle/cli/
web.rs

1use crate::error::Result;
2
3pub fn run(port: u16, open_browser: bool) -> Result<()> {
4    let repo_dir = std::env::current_dir().map_err(|e| crate::error::ChronicleError::Io {
5        source: e,
6        location: snafu::Location::default(),
7    })?;
8    let git_ops = crate::git::CliOps::new(repo_dir);
9
10    crate::web::serve(git_ops, port, open_browser)
11}