1 Star 0 Fork 78

kmath / monitor-http-server

forked from kongkong / monitor-http-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stylerc 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
2011-181 提交于 2015-03-27 16:16 . add folder
#!/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 "[!]")"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/kmath/monitor-http-server.git
git@gitee.com:kmath/monitor-http-server.git
kmath
monitor-http-server
monitor-http-server
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891