Skip to content

Commit

Permalink
fix: Filter 'app list' output by executable (#1783)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor <foreverigor@users.noreply.github.com>
  • Loading branch information
foreverigor and foreverigor authored Apr 4, 2024
1 parent 79480ab commit 0461c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/dev/jbang/cli/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public AppOut(Path file) {
private static List<AppOut> listCommandFiles() {
try (Stream<Path> files = Files.list(Settings.getConfigBinDir())) {
return files
.filter(Files::isExecutable)
.sorted()
.map(AppOut::new)
.filter(distinctByKey(AppOut::getName))
Expand Down

0 comments on commit 0461c57

Please sign in to comment.