mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-25 21:39:02 +02:00
Fix order output of chroma cli tool
Changes output for the chroma cli tool for styles and formatters so that the output on --list is always in the same order.
This commit is contained in:
parent
7f66cd3f6e
commit
edf15b0aff
@ -198,12 +198,12 @@ func listAll() {
|
||||
}
|
||||
fmt.Println()
|
||||
fmt.Printf("styles:")
|
||||
for name := range styles.Registry {
|
||||
for _, name := range styles.Names() {
|
||||
fmt.Printf(" %s", name)
|
||||
}
|
||||
fmt.Println()
|
||||
fmt.Printf("formatters:")
|
||||
for name := range formatters.Registry {
|
||||
for _, name := range formatters.Names() {
|
||||
fmt.Printf(" %s", name)
|
||||
}
|
||||
fmt.Println()
|
||||
|
Loading…
x
Reference in New Issue
Block a user