1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) 2026 Torii Project. All Rights Reserved.
// Licensed under the Torii Source-Available License (Non-Commercial Fork-Friendly) v1.0.
// See LICENSE file in the project root for full license information.
// Commercial use is prohibited without explicit written permission from the copyright holder.
mod auth;
mod cli;
mod cloud;
mod config;
mod core;
mod core_extensions;
mod core_tag;
mod duration;
mod error;
mod mirror;
mod remote;
mod hooks;
mod scanner;
mod snapshot;
mod ssh;
mod tag;
mod commit_scan;
mod graph;
mod history_reauthor;
mod toriignore;
mod transport;
mod updater;
mod url;
mod versioning;
mod pr;
mod issue;
mod tui;
mod archive;
mod bisect;
mod clean;
mod describe;
mod fileops;
mod grep;
mod notes;
mod patch;
mod submodule;
mod subtree;
mod workspace;
mod worktree;
use anyhow::Result;
use cli::Cli;
use clap::Parser;
fn main() -> Result<()> {
transport::register_all();
let cli = Cli::parse();
let result = cli.execute();
updater::maybe_notify();
result
}