Skip to content

Commit

Permalink
fix: sort scripts list (#2477)
Browse files Browse the repository at this point in the history
This allows to have a consistent output from `devbox run`.

Closes #1631 and #1991.

## Summary

## How was it tested?

I tested running multiple times `devbox run` in different project where
I use it.
  • Loading branch information
guerinoni authored Jan 14, 2025
1 parent c0d4d98 commit 0a0ecf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/devbox/devbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ func (d *Devbox) ListScripts() []string {
keys[i] = k
i++
}

slices.Sort(keys)

return keys
}

Expand Down

0 comments on commit 0a0ecf5

Please sign in to comment.