mirror of
https://github.com/ivuorinen/nvm-auto-use.fish.git
synced 2026-02-08 10:48:06 +00:00
- Major refactor of core Fish functions for modularity, caching, and error handling - Improved `.editorconfig` and Makefile for stricter formatting and linting standards - Expanded linting support: added EditorConfig checks, auto-install for missing tools, and Makefile targets - Enhanced CI workflow with clearer permissions and job steps in GitHub Actions - Updated documentation in `README.md` and `CLAUDE.md` to reflect new features, advanced developer tools, and contribution guidelines - Improved Node.js version manager detection, switching, and installation logic - Added/updated utility functions for configuration, silent mode, notifications, and version extraction - Various bug fixes, code quality improvements, and expanded test coverage
23 lines
634 B
Fish
23 lines
634 B
Fish
function nvm_auto_use_silent -d "Enable or disable silent mode for nvm-auto-use"
|
|
if test (count $argv) -eq 0
|
|
if set -q _nvm_auto_use_silent
|
|
echo "Silent mode: enabled"
|
|
else
|
|
echo "Silent mode: disabled"
|
|
end
|
|
return
|
|
end
|
|
|
|
switch $argv[1]
|
|
case on enable true 1
|
|
set -g _nvm_auto_use_silent 1
|
|
echo "Silent mode enabled"
|
|
case off disable false 0
|
|
set -e -g _nvm_auto_use_silent
|
|
echo "Silent mode disabled"
|
|
case '*'
|
|
echo "Usage: nvm_auto_use_silent [on|off]"
|
|
return 1
|
|
end
|
|
end
|