Skip to content

Add cross-platform support for type builtin #6

@coderabbitai

Description

@coderabbitai

Context

The type builtin currently uses Unix-specific code that won't compile on Windows:

  • std::os::unix::fs::PermissionsExt trait (line 5 in src/main.rs)
  • PATH separator ":" is Unix-specific (Windows uses ";")

Suggested approach

Consider using conditional compilation with #[cfg(unix)] and #[cfg(windows)] attributes to support both platforms, or document that the shell is Unix-only.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions