Module platform

Source
Expand description

Platform-specific utilities for cross-platform compatibility

Functionsยง

create_git_hook_content
Create platform-specific Git hook content
default_editor
Get platform-specific environment variable for editor
default_shell
Get the default shell for the current platform
executable_extension
Get the executable file extension for the current platform
executable_name
Add the appropriate executable extension to a binary name
git_hook_extension
Get platform-specific Git hook script extension
is_executable
Check if a file is executable on the current platform
make_executable
Make a file executable on the current platform
normalize_line_endings
Platform-specific line ending normalization
path_separator
Platform-specific utilities for handling cross-platform differences
secure_temp_dir
Get platform-specific temporary directory with proper permissions
shell_completion_dirs
Get platform-specific shell completion directories