Refactoring Code
This commit is contained in:
16
src/ui/content.sh
Normal file
16
src/ui/content.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
wxi-content(){
|
||||
if [[ $1 == "text" ]]
|
||||
then
|
||||
echo "$2"
|
||||
elif [[ $1 == "status" ]]
|
||||
then
|
||||
wxi-repeat "\n" 2
|
||||
echo -n "$wxiBold"
|
||||
echo "Status"
|
||||
echo -n "$wxiNormal"
|
||||
echo "$2 - $3"
|
||||
elif [[ $1 == "link" ]]
|
||||
then
|
||||
echo "$2 - $3"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user