kindwolf.org Git repositories moulti / master tests / scripts / divider.bash
master

Tree @master (Download .tar.gz)

divider.bash @masterraw · history · blame

#!/usr/bin/env bash
MAX="$1"
function run {
	((STEP >= MAX)) && exit 0
	"$@"
	((++STEP))
}
title=$'This text is simply displayed.\nMulti-line is possible. So is [i]rich formatting[/]'
run moulti divider add my_first_divider --title="${title}"
run moulti divider update my_first_divider --classes=warning
run moulti divider delete my_first_divider