I’m looking for a cross-platform CLI tool to analyze and enforce size limits on files and directories. Here’s my scenario:
I need to validate file and folder sizes locally on different operating systems (macOS, Windows, Linux) to ensure consistency across development environments.
I also want to integrate this tool into CI/CD pipelines to fail builds when size limits are exceeded.
Key requirements for the tool:
- Works seamlessly across macOS, Windows, and Linux.
- Allows setting size thresholds and provides warnings when limits are exceeded.
- Outputs standard exit codes for easy integration into automated scripts and pipelines.
- Supports configurations via command-line arguments or a configuration file.
- Can exclude specific files or directories during size calculations.
- Ideally, the tool should be simple to use, lightweight, and actively maintained.
Does anyone know of a CLI tool that meets these criteria? Recommendations would be greatly appreciated! 😊
I searched for CLI tools that could enforce size limits on files and directories. I found several file analysis tools, but most of them were either:
- Platform-specific and lacked cross-platform support for macOS, Windows, and Linux.
- Overly complex or not focused on enforcing size thresholds with exit codes for automated use.
- Did not provide features to ignore specific files or directories during size calculations.
- A lot of unnecessary dependencies