Features:
- Add check for CoffeeScript compiler installation
- Add input validation for all functions
- Add proper error messages with usage information
- Add clipboard operation feedback
Improvements:
- Replace aliases with proper functions for better control
- Use local variables to prevent namespace pollution
- Add proper quoting and option handling
- Add error output redirection
- Export functions for subshell availability
The previous implementation lacked error checking and could fail silently
in various scenarios. This update makes the functions more robust and
user-friendly while maintaining the original functionality.
This commit fixes the error
_coffee:49: bad math expression: operand expected at `< 2 '
when the coffee command is missing or the `coffee --version` command fails.
It also uses is-at-least to check for the cut-off version for suggesting
`--lint` and `--require` arguments, instead of using `cut` multiple times.
Fixes#10759