Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
modify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
goropikari committed Feb 25, 2018
1 parent 9c45f7b commit 4c8b0d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/linux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ function notify(message::AbstractString;
end

@doc """
alarm(;sound::AbstractString)
notify by sound
Notifier.alarm(;sound::AbstractString)
notify by sound
if you choose a specific sound WAV file, you can use it instead of the defalut sound.
if you choose a specific sound WAV file, you can use it instead of the defalut sound.
""" alarm
function alarm(;sound::AbstractString=joinpath(@__DIR__, "default.wav"))
@async run(`aplay -q $sound`)
return nothing
end

@doc """
register_email()
Notifier.register_email()
register a recipient e-mail address
""" register_email
Expand Down Expand Up @@ -68,7 +68,7 @@ function register_email()
end

@doc """
email(message; subject, To)
Notifier.email(message; subject, To)
defalut\n
subject="\$(round(now(), Dates.Second(1)))"\n
Expand Down
8 changes: 4 additions & 4 deletions src/windows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export notify, alarm

@doc """
---
notify(message::AbstractString;
Notifier.notify(message::AbstractString;
title::AbstractString,
sound::Union{Bool, AbstractString},
time::Real)
Expand All @@ -30,9 +30,9 @@ function notify(message::AbstractString;
end

@doc """
alarm(;sound::AbstractString)
notify by sound
Notifier.alarm(;sound::AbstractString)
notify by sound
if you choose a specific sound WAV file, you can use it instead of the default sound.
if you choose a specific sound WAV file, you can use it instead of the default sound.
""" alarm
alarm(;sound::AbstractString=joinpath(@__DIR__, "default.wav")) = @async run(`powershell -Command '('new-object System.Media.SoundPlayer $sound')'.PlaySync'('')'`)

0 comments on commit 4c8b0d0

Please sign in to comment.