mvdan

sh

mvdan

A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt

AI 简介

mvdan/sh 是一个支持 Bash 和 Zsh 的 Shell 解析器、格式化工具和解释器。该项目使用 Go 语言编写,提供了对 POSIX Shell、Bash、Zsh 和 mksh 的支持。其核心功能包括解析 Shell 脚本、执行字符串扩展、运行脚本以及通过 shfmt 工具进行代码格式化。此外,还包含了一个实验性的 gosh 命令行 shell。mvdan/sh 适用于需要处理和分析 Shell 脚本的开发场景,如自动化脚本维护、代码审查及提高脚本可读性等任务中。

Go
BSD 3-Clause "New" or "Revised" License
8.8k
Stars
410
Forks
55
Watchers
102
Issues

Star 增长

今日+1
近 7 天+14
近 30 天+76
综合评分80.44
默认分支master