]>
Commit | Line | Data |
---|---|---|
d620665f | 1 | use std::io::Result; |
a9c6be41 | 2 | use crate::configuration::Configuration; |
d620665f RBR |
3 | |
4 | pub struct Publish; | |
5 | ||
6 | impl Publish { | |
7 | pub fn new() -> Self { | |
8 | Publish | |
9 | } | |
10 | } | |
11 | ||
12 | impl super::Command for Publish { | |
13 | fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> { | |
14 | vec![] | |
15 | } | |
16 | ||
a9c6be41 | 17 | fn execute(&self, input: Option<&String>, _: &Configuration, _: &String) -> Result<()> { |
d620665f RBR |
18 | println!("Publish: {:?}!", input); |
19 | return Ok(()) | |
20 | } | |
21 | ||
22 | fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> { | |
23 | vec![] | |
24 | } | |
25 | ||
26 | fn command(&self) -> &'static str { | |
27 | "publish" | |
28 | } | |
29 | ||
30 | fn help(&self) -> &'static str { | |
2f579cf4 | 31 | "<destination>\t\tPublishes the blog to a remote host" |
d620665f RBR |
32 | } |
33 | } |