aboutsummaryrefslogtreecommitdiff
path: root/src/command/publish_archive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/publish_archive.rs')
-rw-r--r--src/command/publish_archive.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/command/publish_archive.rs b/src/command/publish_archive.rs
new file mode 100644
index 0000000..4275c38
--- /dev/null
+++ b/src/command/publish_archive.rs
@@ -0,0 +1,32 @@
+use std::io::Result;
+
+pub struct PublishArchive;
+
+impl PublishArchive {
+ pub fn new() -> Self {
+ PublishArchive
+ }
+}
+
+impl super::Command for PublishArchive {
+ fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
+ vec![]
+ }
+
+ fn execute(&self, input: Option<&String>) -> Result<()> {
+ println!("Publish Archive: {:?}!", input);
+ return Ok(())
+ }
+
+ fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
+ vec![]
+ }
+
+ fn command(&self) -> &'static str {
+ "publish-archive"
+ }
+
+ fn help(&self) -> &'static str {
+ "<destination>\tPublishes the archive to a remote host."
+ }
+}