mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
cli: Add --from and other options to rad seed
Gives the same options to `rad seed` as `rad sync --fetch`. Allows seeding and syncing from specific seeds in one command: rad seed <rid> --from <nid> Useful for seeding private repos on public nodes.
This commit is contained in:
@@ -39,6 +39,12 @@ impl SyncSettings {
|
||||
self
|
||||
}
|
||||
|
||||
/// Set seeds.
|
||||
pub fn seeds(mut self, seeds: impl IntoIterator<Item = NodeId>) -> Self {
|
||||
self.seeds = seeds.into_iter().collect();
|
||||
self
|
||||
}
|
||||
|
||||
/// Use profile to populate sync settings, by adding preferred seeds if no seeds are specified,
|
||||
/// and removing the local node from the set.
|
||||
pub fn with_profile(mut self, profile: &Profile) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user