Skip to content

Reorder directory change and container opening in extract command for…#4

Merged
zombocoder merged 1 commit intomainfrom
bugfix/fix-extract-flag
Sep 7, 2025
Merged

Reorder directory change and container opening in extract command for…#4
zombocoder merged 1 commit intomainfrom
bugfix/fix-extract-flag

Conversation

@zombocoder
Copy link
Owner

This pull request significantly improves the usability and clarity of the bfc CLI tool by expanding and reorganizing the documentation in README.md and correcting the order of operations in the extract command implementation. The changes provide detailed command references, better usage examples, and ensure correct behavior when extracting files to a specific directory.

Documentation improvements:

  • Expanded the README.md with detailed sections for each CLI command, including syntax, options, and practical usage examples for create, list, extract, info, and verify commands. This also includes a new CLI reference section with a quick summary table and a complete option reference for all commands. [1] [2] [3]

Code correctness and usability:

  • In src/cli/cmd_extract.c, fixed the order of operations so that the container is opened before changing the working directory. This prevents issues when the output directory does not exist or is inaccessible, ensuring the container can always be found and closed properly. [1] [2]

@zombocoder zombocoder merged commit 52fe28c into main Sep 7, 2025
9 checks passed
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