Files
nvm-auto-use.fish/functions/nvm_auto_use_silent.fish
Ismo Vuorinen 5b680f06ac feat: refactor plugin architecture, enhance linting, CI & tooling
- 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
2025-07-16 15:12:14 +03:00

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