项目介绍

mvdan/sh 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 9.2k 个 Star、466 次 Fork。

仓库全名
mvdan/sh

README 摘要

sh A shell parser, formatter, and interpreter. Supports [POSIX Shell], [Bash], [Zsh], and [mksh]. Requires Go 1.26 or later. Quick start To parse shell scripts into a syntax tree, inspect them, and format them like shfmt does, see the syntax package. For one-call helpers with shell semantics, see the shell package: split a command line into arguments and quote them back like shlex, expand $VAR and in strings, and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

sh 用什么语言开发?

主要使用 Go 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 9.2k 个 Star。

sh 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 sh 的源码?

可以直接克隆仓库:git clone https://github.com/mvdan/sh.git,默认分支为 master;安装与运行步骤见仓库 README。

sh 最近还在维护吗?

仓库最近一次更新为 21 小时前,当前有 46 个未关闭 Issue;Star 数为 9.2k,可作为社区活跃度的参考。

关于

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

描述来自项目方在 GitHub 上的公开说明,中文内容由 GitRead 中文社区 整理。

简要分析

热度分
10222
价值分
5683
活跃状态
活跃

语言占比

CUE
Dockerfile
Go
Shell

Release