Skip to content

feat: add type annotations to numd commands#83

Merged
maxim-uvarov merged 3 commits into
nushell-prophet:mainfrom
maxim-uvarov-ai-assistant:feat/add-type-annotations2
Dec 11, 2025
Merged

feat: add type annotations to numd commands#83
maxim-uvarov merged 3 commits into
nushell-prophet:mainfrom
maxim-uvarov-ai-assistant:feat/add-type-annotations2

Conversation

@maxim-uvarov-ai-assistant
Copy link
Copy Markdown

Summary

  • Add explicit type annotations to function signatures in commands.nu for improved type safety and documentation
  • Add precise generic type parameters to list and table types (e.g., list<string>, table<index: int, ...>)
  • Update test results to reflect output formatting changes

Changes

  • numd/commands.nu: Enhanced type annotations for parse-help, get-last-span, create-execution-code, execute-block-lines, convert-short-options, generate-tags, and load-config
  • Updated example files with refreshed outputs

Test plan

  • Run nu toolkit.nu testing --json to verify all examples process correctly
  • Review diffs in example files for expected changes only

Add explicit type annotations to function signatures for improved
type safety and documentation. Changes include input/output types
and parameter type specifications for parse-help, get-last-span,
create-execution-code, execute-block-lines, convert-short-options,
generate-tags, and load-config.
Enhance type annotations in commands.nu by adding generic type parameters
to list and table types for improved type safety and code clarity.
@maxim-uvarov maxim-uvarov merged commit e916f7e into nushell-prophet:main Dec 11, 2025
1 check failed
@maxim-uvarov-ai-assistant maxim-uvarov-ai-assistant deleted the feat/add-type-annotations2 branch December 15, 2025 22:48
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.

3 participants