38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
"""
|
|
Silique (https://www.silique.fr)
|
|
Copyright (C) 2025-2026
|
|
|
|
This program is free software: you can redistribute it and/or modify it
|
|
under the terms of the GNU Lesser General Public License as published by the
|
|
Free Software Foundation, either version 3 of the License, or (at your
|
|
option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
"""
|
|
|
|
from ..i18n import _
|
|
from .github import OutputFamily as GHOutputFamily
|
|
|
|
|
|
class OutputFamily(GHOutputFamily):
|
|
level = 30
|
|
name = "gitlab"
|
|
variable_hidden_color = "+"
|
|
value_unmodified_color = "+"
|
|
value_modified_color = "-"
|
|
error_color = "-"
|
|
warning_color = "-"
|
|
|
|
def set_color(self, color, msg):
|
|
if not color:
|
|
return msg
|
|
return f'[{color} {msg} {color}]'
|
|
|
|
def title(self, msg):
|
|
return f"> [!note] {msg}" + "\n>\n"
|