fixed main func

main
simonkellet 1 year ago
parent 28743704cc
commit 165ba20005
  1. 8
      main.go

@ -138,11 +138,6 @@ func main() {
var flagEnableL = flag.Bool("l", false, "Enable ls -l output") var flagEnableL = flag.Bool("l", false, "Enable ls -l output")
var flagEnableA = flag.Bool("a", false, "Enable ls -a output") var flagEnableA = flag.Bool("a", false, "Enable ls -a output")
func main() {
var flagNoColor = flag.Bool("no-colour", false, "Disable color output")
var flagNoList = flag.Bool("no-l", false, "Disable ls -l output")
var dir string
flag.Parse() flag.Parse()
if *flagNoColor { if *flagNoColor {
@ -157,8 +152,5 @@ func main() {
PrintWithoutL(content, flagEnableA) PrintWithoutL(content, flagEnableA)
} else { } else {
PrintWithL(content, flagEnableA) PrintWithL(content, flagEnableA)
dirOutput := color.New(color.FgCyan, color.Bold)
fileOutput := color.New(color.FgWhite, color.Bold)
} }
} }

Loading…
Cancel
Save