Skip to content

Commit

Permalink
Update help mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ge3224 committed Sep 3, 2023
1 parent 0a885e7 commit 9f2ef0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ impl<'a> Executable for Diff<'a> {

// The DESCRIPTION constant contains a brief explanation of the purpose of the Diff command.
const DESC: &'static str =
"Compare the state of a local directory in your project with a corresponding directory on your Neocities website.";
"Compare the state of a local path in your project with a corresponding path on your Neocities website.";

// The DESCRIPTION constant contains a brief explanation of the purpose of the Diff command.
const DESC_SHORT: &'static str = "Compare a local and a remote path.";
Expand Down
6 changes: 4 additions & 2 deletions src/client/help.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{
command::{Command, CommandKind, Executable},
delete, help, info, key, list, upload, version,
delete, diff, help, info, key, list, upload, version,
};
use crate::error::NeocitiesErr;

Expand Down Expand Up @@ -70,11 +70,12 @@ impl Help {
match arg {
list::KEY => Ok(Command::new(CommandKind::List)),
info::KEY => Ok(Command::new(CommandKind::Info)),
version::KEY => Ok(Command::new(CommandKind::Version)),
upload::KEY => Ok(Command::new(CommandKind::Upload)),
delete::KEY => Ok(Command::new(CommandKind::Delete)),
key::KEY => Ok(Command::new(CommandKind::Key)),
diff::KEY => Ok(Command::new(CommandKind::Diff)),
help::KEY => Ok(Command::new(CommandKind::Help)),
version::KEY => Ok(Command::new(CommandKind::Version)),
_ => Err(NeocitiesErr::InvalidCommand),
}
}
Expand Down Expand Up @@ -123,6 +124,7 @@ Commands:
\x1b[1;32minfo\x1b[0m Info about Neocities websites
\x1b[1;32mkey\x1b[0m Neocities API key
\x1b[1;32mlist\x1b[0m List files on Neocities
\x1b[1;32mdiff\x1b[0m Compare local with remote paths
\x1b[1;32mversion\x1b[0m Show neocities client version
Help for a specific command:
Expand Down

0 comments on commit 9f2ef0e

Please sign in to comment.