Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
ae6623ec
Commit
ae6623ec
authored
Nov 08, 2021
by
Johannes Kreiner
Browse files
[TASK] Allow disabling desktop notifications via -q
parent
dc0e78ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/logger.js
View file @
ae6623ec
...
...
@@ -85,6 +85,10 @@ module.exports = class Logger {
* @param {Object} _options Contains advanced options
*/
static
displayNotification
(
_title
,
_message
,
_options
=
{
wait
:
false
,
timeout
:
5000
})
{
if
(
argv
.
q
||
argv
.
quiet
)
{
return
;
}
let
icon
=
_options
.
icon
?
_options
.
icon
:
'
SGC.svg
'
;
try
{
if
(
process
.
platform
===
'
linux
'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment