]> git.r.bdr.sh - rbdr/blog/blame - src/command/publish_archive.rs
Add help
[rbdr/blog] / src / command / publish_archive.rs
CommitLineData
d620665f
RBR
1use std::io::Result;
2
3pub struct PublishArchive;
4
5impl PublishArchive {
6 pub fn new() -> Self {
7 PublishArchive
8 }
9}
10
11impl super::Command for PublishArchive {
12 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
13 vec![]
14 }
15
16 fn execute(&self, input: Option<&String>) -> Result<()> {
17 println!("Publish Archive: {:?}!", input);
18 return Ok(())
19 }
20
21 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
22 vec![]
23 }
24
25 fn command(&self) -> &'static str {
26 "publish-archive"
27 }
28
29 fn help(&self) -> &'static str {
2f579cf4 30 "<destination>\tPublishes the archive to a remote host"
d620665f
RBR
31 }
32}