This commit is contained in:
echo 2022-09-22 14:18:20 +03:30
parent ff5c0f746c
commit 66f4e514ca
4 changed files with 55 additions and 33 deletions

36
utils/args.go Normal file
View file

@ -0,0 +1,36 @@
package utils
import (
"os"
"strings"
)
var args []string
var shoulduwuify bool = true
var noascii bool = false
func Initargs() {
args = os.Args[1:]
for _, argument := range args {
if strings.HasPrefix(argument, "--") {
switch argument {
case "--nouwu":
shoulduwuify = false
case "--noascii":
noascii = true
}
}
}
}
func Woulduwuify() bool {
return shoulduwuify
}
func Asciioverwrite(ascii []string) []string {
if noascii {
literallynothing := []string{"", ""}
return (literallynothing)
} else {
return ascii
}
}

30
utils/asciiarts.go Normal file
View file

@ -0,0 +1,30 @@
package utils
import (
"strings"
)
func Getascii(name string) []string {
none := `!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!
!!!!noascii!!!!
!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!! `
arch := ` /\
/ \
/\ \
/ > ω <\
/ __ \
/ __| |__-\
/_-'' ''-_\ `
switch name {
case "Arch Linux":
return strings.Split(arch, "\n")
default:
return strings.Split(none, "\n")
}
}