mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
📚 Add better docstring for srepl.main/notify! helper
This commit is contained in:
parent
78919df886
commit
cf55d12991
1 changed files with 12 additions and 2 deletions
|
@ -209,7 +209,17 @@
|
||||||
This method allows send flash notifications to specified target destinations.
|
This method allows send flash notifications to specified target destinations.
|
||||||
The message can be a free text or a preconfigured one.
|
The message can be a free text or a preconfigured one.
|
||||||
|
|
||||||
The destination can be: all, profile-id, team-id, or a coll of them."
|
The destination can be: all, profile-id, team-id, or a coll of them.
|
||||||
|
It also can be:
|
||||||
|
|
||||||
|
{:email \"some@example.com\"}
|
||||||
|
[[:email \"some@example.com\"], ...]
|
||||||
|
|
||||||
|
Command examples:
|
||||||
|
|
||||||
|
(notify! :dest :all :code :maintenance)
|
||||||
|
(notify! :dest :all :code :upgrade-version)
|
||||||
|
"
|
||||||
[& {:keys [dest code message level]
|
[& {:keys [dest code message level]
|
||||||
:or {code :generic level :info}
|
:or {code :generic level :info}
|
||||||
:as params}]
|
:as params}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue