mirror of
https://github.com/AdaCore/SPARKlib.git
synced 2026-02-12 13:11:36 -08:00
17 lines
510 B
Bash
17 lines
510 B
Bash
# Taken from https://docs.gitlab.com/ci/jobs/job_logs/#use-a-script-to-improve-display-of-collapsible-sections
|
|
|
|
# function for starting the section
|
|
function section_start () {
|
|
local section_title="${1}"
|
|
local section_description="${2:-$section_title}"
|
|
|
|
echo -e "section_start:`date +%s`:${section_title}[collapsed=true]\r\e[0K${section_description}"
|
|
}
|
|
|
|
# Function for ending the section
|
|
function section_end () {
|
|
local section_title="${1}"
|
|
|
|
echo -e "section_end:`date +%s`:${section_title}\r\e[0K"
|
|
}
|