Aggiornare 'crapset/crappy/aux.py'

This commit is contained in:
Valentino Orlandi 2022-06-17 20:13:57 +00:00
parent f63f931974
commit a088619bc6
1 changed files with 39 additions and 93 deletions

View File

@ -1,101 +1,47 @@
def elbarto() -> str :
def MSG_help( color_set:dict ) -> str :
return """\
\
"""
{err}Synopsis{default}
{grey}craplog{default} set {grey}[{white}OPTION{grey}]{default}
def craplogo() -> str :
{err}Options{default}
{yellow}Option{default} ¦ {yellow}Description{default}
{white}--------------------------------------------------------------------------------{default}
¦
{bold}-h{default} ¦ print this screen and exit
{bold}--help{default} ¦
¦
¦
{bold}--examples{default} ¦ print usage examples and exit
¦
¦
{bold}-l{default} ¦ less output on screen
{bold}--less{default} ¦
¦
¦
{bold}-m{default} ¦ more output on screen
{bold}--more{default} ¦
¦
¦
{bold}--no-colors{default} ¦ do not apply colors to the output
¦
{white}--------------------------------------------------------------------------------{default}\
""".format(**color_set).replace("¦", "{white}¦{default}".format(**color_set))
def MSG_examples( color_set:dict ) -> str :
return """\
__ ___ _____ ___ ____ ____ _____
/ _| | \\ | _ | | \\ | __| | __| |_ _|
| / | || | | |_| | | || | | |__ | |_ | |
| | | / | _ | | _/ |____| | _| | |
| \\_ | \\ | | | | | | __| | | |__ | |
\\__| |_|\\_\\ |_| |_| |_| |____| |____| |_| \
"""
{err}Examples{default}
- {green}Use.{default}
{italic}craplog{default} {azul}set{default}
def crapup( color_set ) -> str :
return """{bold}\
{red} CCCC{default}{bold} {orange}RRRR {default}{bold} {grass}AAAAA{default}{bold} {cyan}PPPP {default}{bold} {white}SSSSS{default}{bold} {white}EEEEE{default}{bold} {white}TTTTT{default}{bold}
{red}C {default}{bold} {orange}R R{default}{bold} {grass}A A{default}{bold} {cyan}P P{default}{bold} {white}S {default}{bold} {white}E {default}{bold} {white} T {default}{bold}
{red}C {default}{bold} {orange}RRRR {default}{bold} {grass}AAAAA{default}{bold} {cyan}PPPP {default}{bold} {white}SSSSS{default}{bold} {white}EEE {default}{bold} {white} T {default}{bold}
{red}C {default}{bold} {orange}R R {default}{bold} {grass}A A{default}{bold} {cyan}P {default}{bold} {white} S{default}{bold} {white}E {default}{bold} {white} T {default}{bold}
{red} CCCC{default}{bold} {orange}R R{default}{bold} {grass}A A{default}{bold} {cyan}P {default}{bold} {white}SSSSU{default}{bold} {white}EEEEE{default}{bold} {white} T {default}\
- {green}UUse with less output on screen and no colors.{default}
{italic}craplog{default} {azul}set{default} {bold}-l --no-colors{default}\
""".format(**color_set)
def fin( color_set ) -> str :
return """{bold}\
{orange}FFFFF{default}{bold} {grass}II{default}{bold} {cyan}N N{default}{bold}
{orange}F {default}{bold} {grass}II{default}{bold} {cyan}NN N{default}{bold}
{orange}FFF {default}{bold} {grass}II{default}{bold} {cyan}N N N{default}{bold}
{orange}F {default}{bold} {grass}II{default}{bold} {cyan}N NN{default}{bold}
{orange}F {default}{bold} {grass}II{default}{bold} {cyan}N N{default}\
""".format(**color_set)
def colors() -> dict :
return { 'default' : "\033[0m",
'bold' : "\033[1m",
'italic' : "\033[3m",
'black' : "\033[30m",
'grey' : "\033[90m",
'white' : "\033[37m",
'paradise': "\033[97m",
'purple' : "\033[35m",
'pink' : "\033[95m",
'blue' : "\033[34m",
'azul' : "\033[94m",
'cyan' : "\033[36m",
'grass' : "\033[32m",
'green' : "\033[92m",
'red' : "\033[31m",
'rose' : "\033[91m",
'orange' : "\033[33m",
'yellow' : "\033[93m",
'ok' : "\033[1;32m",
'err' : "\033[1;31m",
'warn' : "\033[1;33m" }
def no_colors() -> dict :
return { 'default' : "",
'bold' : "",
'italic' : "",
'black' : "",
'grey' : "",
'white' : "",
'paradise': "",
'purple' : "",
'pink' : "",
'blue' : "",
'azul' : "",
'cyan' : "",
'grass' : "",
'green' : "",
'red' : "",
'rose' : "",
'orange' : "",
'yellow' : "",
'ok' : "",
'err' : "",
'warn' : "" }