Skip to content

Conversation

fdncred
Copy link
Contributor

@fdncred fdncred commented Sep 20, 2025

This updates the def syntax so that it supports these:

  • def bar [...args] {}
  • def bar --wrapped --env [...args] {}
  • def bar --env [...args] {}
  • def bar --wrapped [...args] {}
  • def --wrapped --env bar [...args] {}
  • def --env bar [...args] {}
  • def --wrapped bar [...args] {}
  • def --wrapped bar --env [...args] {}

The lsp still doesn't like it but that's a different repo.

closes #221

@fdncred fdncred merged commit 544de24 into nushell:main Sep 20, 2025
1 check passed
@fdncred fdncred deleted the update_syntax_for_def branch September 20, 2025 14:01
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.

Handle cursed env flag positions
1 participant