Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ cargo install rust-cli-pomodoro

### Using credential.json
pomodoro support slack notification.
To use it, you need to create `credential.json` file in somewhere in your local machine. `credential.json` supports two keys, `slack` and `discrod`.
To use it, you need to create `credential.json` file in somewhere in your local machine. `credential.json` supports two keys, `slack` and `discord`.
The `slack` and `discord` value is json. It looks like this

```json
Expand Down
1 change: 1 addition & 0 deletions src/command/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ mod tests {

use super::{parse_arg, read_input};

#[test]
fn test_parse_arg() {
let m = Command::new("myapp")
.arg(Arg::new("id").takes_value(true))
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl fmt::Display for NotificationError {
NotificationError::Discord(_) => write!(f, "NotificationError::Discord"),
NotificationError::EmptyConfiguration => write!(f, "configuration is empty"),
NotificationError::NewNotification(e) => {
write!(f, "faield to get new notification: {}", e)
write!(f, "failed to get new notification: {}", e)
}
NotificationError::DeletionFail(msg) => write!(f, "{}", msg),
}
Expand Down
2 changes: 1 addition & 1 deletion src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ fn create_uds_address(r#type: UdsType, should_remove: bool) -> std::io::Result<P
let path = get_uds_address(r#type);

if should_remove && path.exists() {
debug!("patt {:?} exists, remove it before binding", &path);
debug!("path {:?} exists, remove it before binding", &path);
fs::remove_file(&path)?;
}

Expand Down
2 changes: 1 addition & 1 deletion src/notification/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ pub async fn notify_work(configuration: &Arc<Configuration>) -> Result<String, N
let (desktop_result, slack_result, discord_result) = join!(desktop_fut, slack_fut, discord_fut);

Ok(report::generate_notify_report(
slack_result,
desktop_result,
slack_result,
discord_result,
))
}
Expand Down