Skip to content

feat: add debug logging and verbose CLI flag#8

Merged
leodiegues merged 1 commit into
mainfrom
feat/add-verbose-flag
Feb 22, 2026
Merged

feat: add debug logging and verbose CLI flag#8
leodiegues merged 1 commit into
mainfrom
feat/add-verbose-flag

Conversation

@leodiegues
Copy link
Copy Markdown
Owner

This pull request introduces verbose logging throughout the codebase to aid debugging and traceability of operations. It adds support for a --verbose CLI flag, integrates the log and env_logger crates, and inserts debug! log statements in key functions across the commands, git, and installer modules. The changes also remove sectioned comments to streamline the code.

Logging and debug support:

  • Added log and env_logger dependencies in Cargo.toml to enable logging throughout the project.
  • Introduced debug! log statements in critical functions in src/commands.rs, src/git.rs, and src/installer.rs to trace command execution, source resolution, file operations, and git interactions. [1] [2] [3]

CLI improvements:

  • Added a --verbose global flag to the CLI, allowing users to enable verbose logging for debugging purposes.

Codebase cleanup:

  • Removed sectioned comments in src/commands.rs to streamline the code and improve readability. [1] [2] [3] [4] [5]

Logging enhancements in git operations:

  • Added debug! statements to log git clone, fetch, checkout, and reset operations, including cache hits/misses and default branch detection. [1] [2] [3] [4] [5] [6]

These changes collectively improve observability and make troubleshooting much easier during development and usage.

Also, fix recusive dir mapping.
@leodiegues leodiegues self-assigned this Feb 22, 2026
@leodiegues leodiegues merged commit b760c5e into main Feb 22, 2026
5 checks passed
@leodiegues leodiegues deleted the feat/add-verbose-flag branch February 22, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant