1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yeetrack-monitor-http-server

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
stylerc 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
2011-181 Отправлено 27.03.2015 11:16 0453b3f
#!/usr/bin/env bash
# DESCRIPTION
# Define some variables and function to help format output
#
# USAGE
# 1. (optionnal) set the path to the stylerc :
# export STYLERC="$HOME/path/to/stylerc"
# 2. include style to your script :
# source "$STYLERC" # include style
_underline_="$(tput sgr 0 1)" # Underline
_bold_="$(tput bold)" # Bold
_reset_="$(tput sgr0)" # Reset
_info_="$(tput setaf 6)" # blue/information
_warning_="$(tput setaf 3)" # yellow/warning
_error_="${_bold_}$(tput setaf 1)" # red/error
_value_="$(tput setaf 7)" # value/white
_valid_="$(tput setaf 2)" # valid/green
# style text as underline
function _underline() {
printf "${_underline_}%s${_reset_}" "$1"
}
# style text as bold
function _bold() {
printf "${_bold_}%s${_reset_}" "$1"
}
# style text as info
function _info() {
printf "${_info_}%s${_reset_}" "$1"
}
# style text as warning
function _warning() {
printf "${_warning_}%s${_reset_}" "$1"
}
# style text as error
function _error() {
printf "${_error_}%s${_reset_}" "$1"
}
# style text as value
function _value() {
printf "${_value_}%s${_reset_}" "$1"
}
# style text as valid
function _valid() {
printf "${_valid_}%s${_reset_}" "$1"
}
_i="$(_info "[i]")"
_w="$(_warning "[×]")"
_e="$(_error "[!]")"

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yeetrack-monitor-http-server.git
git@api.gitlife.ru:oschina-mirror/yeetrack-monitor-http-server.git
oschina-mirror
yeetrack-monitor-http-server
yeetrack-monitor-http-server
master