--distro=
argument now changes the distro
info variable
This commit is contained in:
parent
3262f354f7
commit
77a5854a2e
2 changed files with 5 additions and 5 deletions
4
main.go
4
main.go
|
@ -58,7 +58,11 @@ func handlePrint(action, format string, rest string) {
|
||||||
} else if action == "info" || action == "infoln" {
|
} else if action == "info" || action == "infoln" {
|
||||||
switch rest {
|
switch rest {
|
||||||
case "distro":
|
case "distro":
|
||||||
|
if utils.Asciiforced {
|
||||||
|
utils.CutePrint(utils.Forceddistro, format)
|
||||||
|
} else {
|
||||||
utils.CutePrint(data.GetDistro(), format)
|
utils.CutePrint(data.GetDistro(), format)
|
||||||
|
}
|
||||||
case "username":
|
case "username":
|
||||||
utils.CutePrint(data.GetUsername(), format)
|
utils.CutePrint(data.GetUsername(), format)
|
||||||
case "uptime":
|
case "uptime":
|
||||||
|
|
|
@ -57,7 +57,3 @@ func Initargs() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Woulduwuify() bool {
|
|
||||||
return shoulduwuify
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue