Reorder directory change and container opening in extract command for…#4
Merged
zombocoder merged 1 commit intomainfrom Sep 7, 2025
Merged
Reorder directory change and container opening in extract command for…#4zombocoder merged 1 commit intomainfrom
zombocoder merged 1 commit intomainfrom
Conversation
… improved error handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request significantly improves the usability and clarity of the
bfcCLI tool by expanding and reorganizing the documentation inREADME.mdand correcting the order of operations in theextractcommand implementation. The changes provide detailed command references, better usage examples, and ensure correct behavior when extracting files to a specific directory.Documentation improvements:
README.mdwith detailed sections for each CLI command, including syntax, options, and practical usage examples forcreate,list,extract,info, andverifycommands. 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:
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]