diff --git a/asciiarts/alpine.txt b/asciiarts/alpine.txt index 41409b6..3520e07 100644 --- a/asciiarts/alpine.txt +++ b/asciiarts/alpine.txt @@ -4,5 +4,3 @@ /OωO\ɛU\/ __ / \ \__/ \ / \ \ - - diff --git a/asciiarts/android.txt b/asciiarts/android.txt index 6045cfc..2ac1afb 100644 --- a/asciiarts/android.txt +++ b/asciiarts/android.txt @@ -3,6 +3,3 @@ / \ | {RED}~ {GREEN}> ω < {RED}~ {GREEN}| ------------ - - - diff --git a/asciiarts/arch.txt b/asciiarts/arch.txt index d4e77f8..2055997 100644 --- a/asciiarts/arch.txt +++ b/asciiarts/arch.txt @@ -5,4 +5,3 @@ / __ \ / __| |__-\ /_-'' ''-_\ - diff --git a/asciiarts/asciiart.go b/asciiarts/asciiart.go index b76e9df..39fa1d3 100644 --- a/asciiarts/asciiart.go +++ b/asciiarts/asciiart.go @@ -6,15 +6,148 @@ import ( ) //go:embed alpine.txt -var Alpine string +var alpine string //go:embed unknown.txt var unknown string +//go:embed amogos.txt +var amogos string + +//go:embed android.txt +var android string + +//go:embed arch.txt +var arch string + +//go:embed arcolinux.txt +var arcolinux string + +//go:embed artix.txt +var artix string + +//go:embed debian.txt +var debian string + +//go:embed endeavouros.txt +var endeavouros string + +//go:embed fedora.txt +var fedora string + +//go:embed freebsd.txt +var freebsd string + +//go:embed gentoo.txt +var gentoo string + +//go:embed gnu.txt +var gnu string + +//go:embed guix.txt +var guix string + +//go:embed ios.txt +var ios string + +//go:embed macos.txt +var macos string + +//go:embed manjaro-arm.txt +var manjaroarm string + +//go:embed manjaro.txt +var manjaro string + +//go:embed linuxmint.txt +var linuxmint string + +//go:embed openbsd.txt +var openbsd string + +//go:embed opensuse-leap.txt +var opensuseleap string + +//go:embed opensuse-tumbleweed.txt +var opensuseweed string + +//go:embed pop.txt +var pop string + +//go:embed raspbian.txt +var raspbian string + +//go:embed slackware.txt +var slackware string + +//go:embed solus.txt +var solus string + +//go:embed ubuntu.txt +var ubuntu string + +//go:embed void.txt +var void string + +//go:embed xerolinux.txt +var xerolinux string + func GetAsciiInternal(distroID string) string { switch distroID { - case "Alpine": - return Alpine + case "alpine": + return alpine + case "arcolinux": + return arcolinux + case "artix": + return artix + case "debian": + return debian + case "endeavouros": + return endeavouros + case "fedora": + return fedora + case "freebsd": + return freebsd + case "gentoo": + return gentoo + case "gnu": + return gnu + case "guix": + return guix + case "ios": + return ios + case "linuxmint": + return linuxmint + case "macos": + return macos + case "manjaro-arm": + return manjaroarm + case "manjaro": + return manjaro + case "openbsd": + return openbsd + case "opensuse-leap": + return opensuseleap + case "opensuse-tumbleweed": + return opensuseweed + case "pop": + return pop + case "raspbian": + return raspbian + case "slackware": + return slackware + case "solus": + return solus + case "ubuntu": + return ubuntu + case "void": + return void + case "xerolinux": + return xerolinux + + case "arch": + return arch + default: return unknown } @@ -24,5 +157,14 @@ func GetAscii(distroID string) string { ascii = strings.ReplaceAll(ascii, "{WHITE}", "") ascii = strings.ReplaceAll(ascii, "{YELLOW}", "") ascii = strings.ReplaceAll(ascii, "{BLUE}", "") + ascii = strings.ReplaceAll(ascii, "{LPINK}", "") + ascii = strings.ReplaceAll(ascii, "{BACKGROUND_GREEN}", "") + ascii = strings.ReplaceAll(ascii, "{NORMAL}", "") + ascii = strings.ReplaceAll(ascii, "{BLACK}", "") + ascii = strings.ReplaceAll(ascii, "{GREEN}", "") + ascii = strings.ReplaceAll(ascii, "{RED}", "") + ascii = strings.ReplaceAll(ascii, "{PINK}", "") + ascii = strings.ReplaceAll(ascii, "{MAGENTA}", "") + ascii = strings.ReplaceAll(ascii, "{CYAN}", "") return ascii } diff --git a/asciiarts/debian.txt b/asciiarts/debian.txt index 54a85ea..daa40bf 100644 --- a/asciiarts/debian.txt +++ b/asciiarts/debian.txt @@ -4,5 +4,3 @@ | \____- -_ --_\ - - \ No newline at end of file diff --git a/asciiarts/freebsd.txt b/asciiarts/freebsd.txt index 3b44a43..995ac84 100644 --- a/asciiarts/freebsd.txt +++ b/asciiarts/freebsd.txt @@ -5,4 +5,3 @@ | O ω O | ; ; '-_____-' - diff --git a/asciiarts/gentoo.txt b/asciiarts/gentoo.txt index 7924ef4..d18587e 100644 --- a/asciiarts/gentoo.txt +++ b/asciiarts/gentoo.txt @@ -5,4 +5,3 @@ / _/ ( _- \\____- - diff --git a/asciiarts/gnu.txt b/asciiarts/gnu.txt index eea2a71..d09a222 100644 --- a/asciiarts/gnu.txt +++ b/asciiarts/gnu.txt @@ -5,4 +5,3 @@ `-'{YELLOW}(. .){WHITE}`-' {YELLOW}\{WHITE}w{YELLOW}/ ¯ - diff --git a/asciiarts/guix.txt b/asciiarts/guix.txt index eea2a71..d09a222 100644 --- a/asciiarts/guix.txt +++ b/asciiarts/guix.txt @@ -5,4 +5,3 @@ `-'{YELLOW}(. .){WHITE}`-' {YELLOW}\{WHITE}w{YELLOW}/ ¯ - diff --git a/asciiarts/linuxmint.txt b/asciiarts/linuxmint.txt index 7c26c13..b03cf24 100644 --- a/asciiarts/linuxmint.txt +++ b/asciiarts/linuxmint.txt @@ -4,4 +4,3 @@ {WHITE}|| {GREEN}| {WHITE}| | {GREEN}| {WHITE} | {GREEN}| {WHITE}---- {GREEN}| {WHITE} --{GREEN}'--------' - diff --git a/asciiarts/macos.txt b/asciiarts/macos.txt index d8e1308..90d877c 100644 --- a/asciiarts/macos.txt +++ b/asciiarts/macos.txt @@ -5,4 +5,3 @@ {PINK} w w {MAGENTA} w w {BLUE} www_-_www - diff --git a/asciiarts/opensuse-leap.txt b/asciiarts/opensuse-leap.txt index 57bf9bf..c520c93 100644 --- a/asciiarts/opensuse-leap.txt +++ b/asciiarts/opensuse-leap.txt @@ -4,5 +4,3 @@ _ / {WHITE}O O{GREEN}\ __. ω / '----' - - diff --git a/asciiarts/opensuse-tumbleweed.txt b/asciiarts/opensuse-tumbleweed.txt index 57bf9bf..c520c93 100644 --- a/asciiarts/opensuse-tumbleweed.txt +++ b/asciiarts/opensuse-tumbleweed.txt @@ -4,5 +4,3 @@ _ / {WHITE}O O{GREEN}\ __. ω / '----' - - diff --git a/asciiarts/pop.txt b/asciiarts/pop.txt index fef44af..6fd5398 100644 --- a/asciiarts/pop.txt +++ b/asciiarts/pop.txt @@ -4,4 +4,3 @@ | {LPINK}~ {WHITE}P! {LPINK}~ {BLUE}| _ ---\ ω / \_/ '-----' - diff --git a/asciiarts/raspbian.txt b/asciiarts/raspbian.txt index 2bec710..3784f2f 100644 --- a/asciiarts/raspbian.txt +++ b/asciiarts/raspbian.txt @@ -4,4 +4,3 @@ (_(_)(_)_) (_(__)_) (__) - diff --git a/asciiarts/slackware.txt b/asciiarts/slackware.txt index 78cd4f5..45bbd27 100644 --- a/asciiarts/slackware.txt +++ b/asciiarts/slackware.txt @@ -5,4 +5,3 @@ | {LPINK}~ {WHITE}S {LPINK}~ {MAGENTA}| _ ---\ ω / \_/ '-----' - diff --git a/asciiarts/solus.txt b/asciiarts/solus.txt index 8f6b540..6ac7e24 100644 --- a/asciiarts/solus.txt +++ b/asciiarts/solus.txt @@ -5,4 +5,3 @@ |{BLUE}_{LPINK}~{BLUE}_____{LPINK}~{WHITE}\| {BLUE}_ ---\ {WHITE}ω {BLUE}/ \_/ '-----' - diff --git a/asciiarts/ubuntu.txt b/asciiarts/ubuntu.txt index 7ed4cb8..16ffb82 100644 --- a/asciiarts/ubuntu.txt +++ b/asciiarts/ubuntu.txt @@ -4,4 +4,3 @@ (_) |>ω<| | \ --- _/ {PINK}C__/{LPINK}---(_) - diff --git a/asciiarts/void.txt b/asciiarts/void.txt index 56e7b7c..ced389d 100644 --- a/asciiarts/void.txt +++ b/asciiarts/void.txt @@ -5,4 +5,3 @@ | | {WHITE}ÒωÓ {GREEN}| | , | \_____\_|-, | -_______\ \_/ - diff --git a/asciiarts/xerolinux.txt b/asciiarts/xerolinux.txt index b309046..264e381 100644 --- a/asciiarts/xerolinux.txt +++ b/asciiarts/xerolinux.txt @@ -5,4 +5,3 @@ ______ / \______ ____/__/__\__\___ / __| |__-\ /_-'' ''-_\ - diff --git a/main b/main new file mode 100755 index 0000000..868f313 Binary files /dev/null and b/main differ