Skip to content

Commit

Permalink
Output filename in -list
Browse files Browse the repository at this point in the history
  • Loading branch information
dim0x69 committed Oct 26, 2024
1 parent be2d6b9 commit 3298c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func listCommands(commands map[string]CommandBlock) {
fmt.Println("Available commands:")
for name, command := range commands {
if len(command.Dependencies) > 0 {
fmt.Printf("%s: %s)\n", name, command.Dependencies)
fmt.Printf("%s: %s (%s)\n", name, command.Dependencies, command.Filename)
} else {
fmt.Println(name)
fmt.Printf("%s (%s)\n", name, command.Filename)
}
}
}
Expand Down

0 comments on commit 3298c62

Please sign in to comment.