Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/lets/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/lets-cli/lets/internal/cmd"
"github.com/lets-cli/lets/internal/config"
"github.com/lets-cli/lets/internal/env"
"github.com/lets-cli/lets/internal/executor"
"github.com/lets-cli/lets/internal/logging"
"github.com/lets-cli/lets/internal/set"
"github.com/lets-cli/lets/internal/upgrade"
Expand Down Expand Up @@ -119,6 +120,10 @@ func main() {
}

if err := rootCmd.ExecuteContext(ctx); err != nil {
var depErr *executor.DependencyError
if errors.As(err, &depErr) {
executor.PrintDependencyTree(depErr, os.Stderr)
}
log.Error(err.Error())
os.Exit(getExitCode(err, 1))
}
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: Changelog
* `[Changed]` Exit code 2 on unknown command.
* `[Added]` Expose `LETS_OS` and `LETS_ARCH` environment variables at command runtime.
* `[Removed]` Drop deprecated `eval_env` directive. Use `env` with `sh` execution mode instead.
* `[Fixed]` Evaluate `env` entries sequentially so `sh` values can reference previously resolved env keys (including global env for command-level env).
* `[Added]` When a command or its `depends` chain fails, print an indented tree to stderr showing the full chain with the failing command highlighted

## [0.0.59](https://github.com/lets-cli/lets/releases/tag/v0.0.59)

Expand Down
Loading
Loading