mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
open
This commit is contained in:
parent
be5c84c5e3
commit
67c2b59639
4 changed files with 21 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ pub enum HazeCommand {
|
|||
Db,
|
||||
Clean,
|
||||
Logs,
|
||||
Open,
|
||||
}
|
||||
|
||||
impl FromStr for HazeCommand {
|
||||
|
|
@ -65,6 +66,7 @@ impl FromStr for HazeCommand {
|
|||
"db" => Ok(HazeCommand::Db),
|
||||
"clean" => Ok(HazeCommand::Clean),
|
||||
"logs" => Ok(HazeCommand::Logs),
|
||||
"open" => Ok(HazeCommand::Open),
|
||||
_ => Err(Report::msg(format!("Unknown command: {}", s))),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue