bruh
This commit is contained in:
parent
ff5c0f746c
commit
66f4e514ca
4 changed files with 55 additions and 33 deletions
36
utils/args.go
Normal file
36
utils/args.go
Normal 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
30
utils/asciiarts.go
Normal 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")
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue