|
|
|
@ -138,11 +138,6 @@ func main() { |
|
|
|
|
var flagEnableL = flag.Bool("l", false, "Enable ls -l 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() |
|
|
|
|
|
|
|
|
|
if *flagNoColor { |
|
|
|
@ -157,8 +152,5 @@ func main() { |
|
|
|
|
PrintWithoutL(content, flagEnableA) |
|
|
|
|
} else { |
|
|
|
|
PrintWithL(content, flagEnableA) |
|
|
|
|
dirOutput := color.New(color.FgCyan, color.Bold) |
|
|
|
|
fileOutput := color.New(color.FgWhite, color.Bold) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|