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