diff options
Diffstat (limited to 'src/sub_commands/push.rs')
| -rw-r--r-- | src/sub_commands/push.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs new file mode 100644 index 0000000..e0fda7b --- /dev/null +++ b/src/sub_commands/push.rs | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | |||
| 2 | use clap::{Args}; | ||
| 3 | |||
| 4 | use crate::fetch_pull_push::fetch_pull_push; | ||
| 5 | |||
| 6 | #[derive(Args)] | ||
| 7 | struct PushRepo { | ||
| 8 | /// Relays | ||
| 9 | #[arg(short, long)] | ||
| 10 | relays: Option<String>, | ||
| 11 | } | ||
| 12 | |||
| 13 | #[derive(Args)] | ||
| 14 | pub struct PushSubCommand { | ||
| 15 | } | ||
| 16 | |||
| 17 | pub fn push( | ||
| 18 | _sub_command_args: &PushSubCommand, | ||
| 19 | ) { | ||
| 20 | |||
| 21 | fetch_pull_push( | ||
| 22 | None, | ||
| 23 | false, | ||
| 24 | true, | ||
| 25 | None, | ||
| 26 | false, | ||
| 27 | None, | ||
| 28 | None, | ||
| 29 | ); | ||
| 30 | |||
| 31 | } | ||