Skip to main content

intelli_shell/model/
tldr.rs

1use clap::ValueEnum;
2
3/// Selects which git transport `tldr fetch` should use for the upstream repository.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, ValueEnum)]
5pub enum TldrConnectionMode {
6    /// Detect the transport automatically: reuse the existing clone's remote (honoring git `insteadOf`
7    /// rewrites), otherwise fall back to HTTPS.
8    #[default]
9    Auto,
10    /// Fetch the public repository over HTTPS.
11    Https,
12    /// Fetch the repository over SSH using the local git/SSH configuration.
13    Ssh,
14}