Skip to main content

Crate shuck_formatter

Crate shuck_formatter 

Source
Expand description

Shell formatting entrypoints built on top of shuck-parser.

Most callers will use format_source for source text or format_file_ast when they already have a parsed shell AST. Shell script formatter with configurable style options.

Structs§

ResolvedShellFormatOptions
Formatter option types exposed by the shell formatter.
ShellFormatOptions
Formatter option types exposed by the shell formatter.

Enums§

FormatError
Errors that can occur while parsing or formatting shell source.
FormattedSource
Result of formatting shell source.
IndentStyle
Formatter option types exposed by the shell formatter.
LineEnding
Formatter option types exposed by the shell formatter.
ShellDialect
Formatter option types exposed by the shell formatter.

Functions§

format_file_ast
Formats a parsed shell file using the provided options.
format_source
Formats a shell source string using the provided options.

Type Aliases§

Result
Convenient result alias for shell formatting operations.