summaryrefslogtreecommitdiff
path: root/src/utils.rs
AgeCommit message (Collapse)Author
2026-01-24Add command aliases, error handling improvements, and flag aliases魏曹先生
- Add aliases for status command: sign, sheet, sheet.add, drop, drop.cat - Improve error handling with detailed localized messages for prepare, execute, and render phases - Add flag aliases: -L for --lang and -R for --renderer - Implement similar command suggestions using Levenshtein distance - Fix command matching logic to avoid ambiguous prefix issues
2026-01-22Add renderer system and implement status command魏曹先生
2025-12-04Update utils.rs魏曹先生
2025-12-01Add glob pattern matching utility魏曹先生
This implements a Globber struct that can match files and directories using wildcard patterns (* and ?). It supports relative paths, home directory expansion with ~, and cross-platform path separators. The implementation includes pattern matching with backtracking for complex patterns and handles different directory prefixes (current, user home, and root).
2025-11-22Move quick sort utility to data_struct module魏曹先生
2025-11-17feat: add quick sort utilities魏曹先生
Add quick sort implementation with custom comparison functions
2025-11-10Remove md_colored module魏曹先生
2025-11-10Create fs.rs魏曹先生
2025-11-06feat: add display utilities and table component魏曹先生
- Create display module with SimpleTable structure - Add size_str function for file size formatting - Support ANSI escape sequence filtering in display width - Provide table formatting with proper column alignment
2025-10-29Add confirmation options and alias commands魏曹先生
- Add -C/--confirm flags to skip confirmation for direct/unstain commands - Add command aliases for account and vault subcommands (+/-/ls) - Improve error handling with better error messages - Implement unstain command functionality - Add port option to vault listen command - Refactor error handling to use centralized function
2025-10-27Add socket address helper for domain resolution魏曹先生
2025-10-18refactor: update source code files魏曹先生
- Update jv.rs binary - Update lib.rs library exports - Update utils.rs utility functions
2025-10-14feat: add internationalization support and new command-line tools魏曹先生
- Add locale support with English and Chinese translations - Introduce new jv and jvv command-line tools - Replace jvc.rs with improved command structure - Add utility modules for language selection and markdown coloring - Update configuration and dependencies