Support chinese paths, token login, verbose debug, multithreaded download & more #102
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's Changed
This PR includes a series of enhancements for the CSGHUB CLI tool, focusing on usability, reliability, and performance during upload/download operations.
Key Improvements:
Chinese Path Handling
git config --global core.quotepath false
is set (which allows proper display of non-ASCII paths).Token & Login Management
--login
command-line argument.--token <your_token>
or by reading from the environment variable.Download Structure Improvement
csghub-cli
, it now automatically creates a directory structure based on therepo_id
under the current working directory.Verbose Debug Mode
--verbose
flag to help users and developers see detailed execution logs, making debugging easier.Optimized Upload Logic
nothing to commit
will be shown.Multithreaded Downloading
SDK Installation & Configuration
csghub-sdk
, ensuring smoother setup and dependency resolution.Download Progress Feedback
snapshotdown
to provide real-time download progress information (e.g., percentage, speed).Chinese Repository Name Check
Notes for Reviewers