Create a new Clone command with the given URL. # Arguments `url` - The remote URL to clone from # Example ```rust use atomic::commands::clone::Clone; let clone = Clone::new("https://example.com/repo".to_string()); assert_eq!(clone.url, "https://example.com/repo"); assert_eq!(clone.view, "dev"); ```
(url: String)
| 270 | /// assert_eq!(clone.view, "dev"); |
| 271 | /// ``` |
| 272 | pub fn new(url: String) -> Self { |
| 273 | Self { |
| 274 | url, |
| 275 | path: None, |
| 276 | view: DEFAULT_VIEW.to_string(), |
| 277 | insecure: false, |
| 278 | timeout: DEFAULT_TIMEOUT_SECS, |
| 279 | download_only: false, |
| 280 | into_existing: false, |
| 281 | git: false, |
| 282 | binding_key_file: None, |
| 283 | include_degraded_binding_reads: false, |
| 284 | all_views: false, |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | /// Builder: set the target path. |
| 289 | pub fn with_path(mut self, path: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected