diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2023-05-21 11:27:04 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2023-05-21 11:27:04 +0000 |
| commit | 318e467b158b158cf9eb843318dc14141d1b8c54 (patch) | |
| tree | 46ec99fccfac487b1ff2dd29d3b01fb970fcb88d /src/sub_commands/fetch.rs | |
| parent | 2ce71c5434fb7245aad4d070e08bbf6792d79b4d (diff) | |
main and remaining subcommands
Diffstat (limited to 'src/sub_commands/fetch.rs')
| -rw-r--r-- | src/sub_commands/fetch.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sub_commands/fetch.rs b/src/sub_commands/fetch.rs new file mode 100644 index 0000000..36f1954 --- /dev/null +++ b/src/sub_commands/fetch.rs | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | use clap::Args; | ||
| 2 | use nostr::Keys; | ||
| 3 | |||
| 4 | use crate::fetch_pull_push::fetch_pull_push; | ||
| 5 | |||
| 6 | #[derive(Args)] | ||
| 7 | pub struct FetchSubCommand { | ||
| 8 | } | ||
| 9 | |||
| 10 | pub fn fetch_from_relays(keys: Option<&Keys>) { | ||
| 11 | |||
| 12 | fetch_pull_push( | ||
| 13 | keys, | ||
| 14 | false, | ||
| 15 | false, | ||
| 16 | None, | ||
| 17 | false, | ||
| 18 | None, | ||
| 19 | None, | ||
| 20 | ); | ||
| 21 | |||
| 22 | } | ||