refactor: restructure code and CLI commands#7
Merged
cnblogs-dudu merged 49 commits intocnblogs:mainfrom Feb 4, 2026
Merged
Conversation
…d update github ci config.
- Ignore .DS_Store file - Exclude .vscode and .zed directories
- Update channel version
- Add rust-fmt.toml with custom formatting rules.
## Problem std::fmt::Error and anyhow::Error have similar names, but are actually distinct types in 2024 edition ## Solution - convert std::fmt::Error to anyhow::Error by map_error function
- Remove unnecessary stable feature attribute from lib.rs and cnb.rs - Add explicit return value ignoring with let _ = pattern in infra/str.rs
- Remove manual implementation code. - use derive instead of manual implementation.
- actions/checkout v3 -> v4 - actions/upload-artifact v3 -> v4 - softprops/action-gh-release v1 -> v2
- change build target - use rust triple name build file - run release action on main pushed - run dev action on dev or pr - delete dev generate file and upload. obly check, test and build.
- use `auth` command replace `user`
- Fix login logic - Fix login url - Refactor context file check
- Reorganize command modules into logical structure - Standardize command-line argument parsing - Improve help documentation
- fix logic for fetching gen-name on Windows platform - fix argument handling in `Compress-Archive` command - remove verbose argument from test steps for cleaner logs - add commit lint check to PR validation process - fetch version number directly from Cargo.toml - implement automatic Git tagging based on Cargo.toml version
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.
What Changed
I rewrote the core code and command-line interface (CLI) to make things cleaner and easier to use. The CI pipeline also got smarter.
Main Improvements
📖 For Details
See the updated README for complete documentation and examples