Skip to content

feat: disable plugin when snip is not installed#12

Merged
VincentHardouin merged 1 commit into
mainfrom
feat/skip-if-snip-unavailable
Apr 10, 2026
Merged

feat: disable plugin when snip is not installed#12
VincentHardouin merged 1 commit into
mainfrom
feat/skip-if-snip-unavailable

Conversation

@VincentHardouin
Copy link
Copy Markdown
Owner

Summary

  • Check if snip binary is available in PATH at plugin initialization
  • If snip is not found, log a warning and disable the plugin by returning empty hooks
  • Inspired by rtk plugin implementation

Fixes #9

Behavior

  • snip available: Plugin works normally, prefixing commands
  • snip not available: Plugin is disabled, commands pass through unchanged, warning logged

Test plan

  • Existing tests continue to pass (plugin behavior unchanged when snip is available)
  • Typecheck passes with added dom lib

@VincentHardouin VincentHardouin merged commit d251ab2 into main Apr 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip prefixing if snip is not available

1 participant