-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Add cat_xlsx command with usage information
- Add cat_xlsx command to the CLI tool - Display usage information for cat_xlsx command - Implement options for cat_xlsx command: `-h, --help` and `-V, --version` - Update dependencies in Cargo.toml: `clap` to version 4.1 with `derive` feature, and `calamine` to version 0.26.1 - Refactor main.rs to use clap for command-line argument parsing - Implement Args struct with xlsx_file field for parsing command-line arguments - Check if the provided xlsx file exists before processing - Improve error handling in main function - Iterate over worksheets and print cells' data in cat_xlsx command
- Loading branch information
1 parent
a666f9f
commit ba4987a
Showing
3 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# rust-cli-tools | ||
My CLI tools written by Rust | ||
|
||
## cat_xlsx Usage: | ||
|
||
```shell | ||
Usage: cat_xlsx <XLSX_FILE> | ||
|
||
Arguments: | ||
<XLSX_FILE> Path to the xlsx file | ||
|
||
Options: | ||
-h, --help Print help | ||
-V, --version Print version | ||
``` |
This file contains 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
This file contains 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