aboutsummaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-07-17 11:34:15 +0000
committerFuwn <[email protected]>2022-07-17 11:34:15 +0000
commitecafc617b5693762822937cf09d330569fc01a2b (patch)
treea675f4062d5768c1a3981b6b9b441d692fb56a9d /src/command.rs
parentdocs(README.md): expanding gif link (diff)
downloadsydney-ecafc617b5693762822937cf09d330569fc01a2b.tar.xz
sydney-ecafc617b5693762822937cf09d330569fc01a2b.zip
feat(input.rs): add help command
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.rs b/src/command.rs
index 66f3139..7a53bf7 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -20,6 +20,7 @@ pub enum Command {
Open(Option<String>),
Unknown,
Wrap(u16, Option<String>),
+ Help,
}
impl From<String> for Command {
fn from(s: String) -> Self {
@@ -51,6 +52,7 @@ impl From<String> for Command {
}
},
),
+ Some("help" | "h") => Self::Help,
_ => Self::Unknown,
}
}