aboutsummaryrefslogtreecommitdiff
path: root/src/command/sync_up.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-02-23 20:37:39 +0000
committerRuben Beltran del Rio <git@r.bdr.sh>2024-02-23 20:37:39 +0000
commitd620665f6b2e1ae5db4c98a09e35bd63133ae87f (patch)
tree964bf044d3e1ae880c65d252e7c702f81874f2bc /src/command/sync_up.rs
parent72c91149425d45b0517bda929d459fc02f5603cc (diff)
Add logic skeleton for rust version
Diffstat (limited to 'src/command/sync_up.rs')
-rw-r--r--src/command/sync_up.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/command/sync_up.rs b/src/command/sync_up.rs
new file mode 100644
index 0000000..cf49518
--- /dev/null
+++ b/src/command/sync_up.rs
@@ -0,0 +1,32 @@
+use std::io::Result;
+
+pub struct SyncUp;
+
+impl SyncUp {
+ pub fn new() -> Self {
+ SyncUp
+ }
+}
+
+impl super::Command for SyncUp {
+ fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
+ vec![]
+ }
+
+ fn execute(&self, input: Option<&String>) -> Result<()> {
+ println!("Sync Up: {:?}!", input);
+ return Ok(())
+ }
+
+ fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
+ vec![]
+ }
+
+ fn command(&self) -> &'static str {
+ "sync-up"
+ }
+
+ fn help(&self) -> &'static str {
+ "\t\t\t\tPushes to the git remote if configured."
+ }
+}