Skip to content

refactor: restructure code and CLI commands#7

Merged
cnblogs-dudu merged 49 commits intocnblogs:mainfrom
RocsSun:dev
Feb 4, 2026
Merged

refactor: restructure code and CLI commands#7
cnblogs-dudu merged 49 commits intocnblogs:mainfrom
RocsSun:dev

Conversation

@RocsSun
Copy link
Contributor

@RocsSun RocsSun commented Jan 26, 2026

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

  • Better Code Structure - Easier to maintain
  • New CLI Commands - More intuitive to use
  • Smarter CI/CD - Automates version tagging and checks

📖 For Details

See the updated README for complete documentation and examples

- 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
@cnblogs-dudu cnblogs-dudu merged commit 4013b30 into cnblogs:main Feb 4, 2026
1 of 11 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.

2 participants