git_mover/
lib.rs

1//! # git-mover
2//!
3//! Move git repositories to a new location
4//!
5//! ## Usage
6//!
7//! ```txt
8//! Usage: git-mover [OPTIONS]
9//!
10//! Options:
11//!  -s, --source <SOURCE>            The source platform (github, gitlab, codeberg) [aliases: from]
12//!  -d, --destination <DESTINATION>  The destination platform (github, gitlab, codeberg) [aliases: to]
13//!  -n, --no-forks                   Don't sync forked repositories
14//!  -r, --resync                     Resync all repositories
15//!  -c, --config <CONFIG>            Custom configuration file
16//!      --show-config-path           Show the current config path
17//!  -v, --verbose...                 Verbose mode (-v, -vv, -vvv)
18//!  -h, --help                       Print help
19//! ```
20
21#![deny(
22    missing_docs,
23    clippy::all,
24    clippy::missing_docs_in_private_items,
25    clippy::missing_errors_doc,
26    clippy::missing_panics_doc,
27    clippy::cargo
28)]
29#![warn(clippy::multiple_crate_versions)]
30
31pub(crate) mod cli;
32pub(crate) mod config;
33pub(crate) mod errors;
34pub(crate) mod macros;
35pub(crate) mod platform;
36pub(crate) mod sync;
37pub(crate) mod utils;
38pub(crate) use macros::config_password_wrap;
39pub(crate) use macros::config_value_wrap;
40
41mod codeberg;
42mod github;
43mod gitlab;
44
45pub use cli::cli_main;
46pub use config::Config;
47pub use utils::main_sync;