文件名称:Shell解析器,格式化程序和解释器(sh / bash / mksh),包括shfmt-Golang开发
文件大小:213KB
文件格式:ZIP
更新时间:2024-06-15 07:53:12
Golang Text Processing
sh Shell解析器和格式化程序。 支持POSIX Shell和Bash。 有关快速概述,请参见示例。 shfmt去获取-u github.com/mvdan/sh/cmd/shfmt shfmt格式化shell程序。 它可以使用制表符或任意数量的shell解析器,格式化程序和解释器。 支持POSIX Shell,Bash和mksh。 需要Go 1.13或更高版本。 快速入门要解析shell脚本,对其进行检查并打印出来,请参见语法示例。 有关诸如对字符串执行shell扩展之类的高级操作,请参见shell示例。 shfmt GO111MODULE =运行时获取mvdan.cc/sh/v3/cmd/shfmt shfmt格式的shell程序。 它可以使用制表符或任意数量的空格缩进。 请参阅canonical.sh以快速了解其默认样式。
【文件预览】:
sh-master
----pattern()
--------example_test.go(893B)
--------pattern.go(7KB)
--------pattern_test.go(4KB)
----fileutil()
--------file.go(2KB)
----cmd()
--------gosh()
--------shfmt()
----expand()
--------braces_test.go(3KB)
--------expand.go(22KB)
--------doc.go(180B)
--------environ.go(6KB)
--------param.go(8KB)
--------arith.go(4KB)
--------expand_test.go(2KB)
--------braces.go(2KB)
--------environ_test.go(1KB)
----shell()
--------expand.go(2KB)
--------doc.go(613B)
--------example_test.go(1KB)
--------expand_test.go(3KB)
----.github()
--------FUNDING.yml(14B)
--------workflows()
----LICENSE(1KB)
----interp()
--------handler.go(8KB)
--------test.go(5KB)
--------interp_test.go(78KB)
--------unix_test.go(3KB)
--------builtin.go(19KB)
--------example_test.go(2KB)
--------os_unix.go(1KB)
--------runner.go(18KB)
--------vars.go(8KB)
--------api.go(16KB)
--------os_windows.go(338B)
--------test_classic.go(4KB)
--------windows_test.go(664B)
--------handler_test.go(7KB)
----_js()
--------testmain.js(5KB)
--------package.json(399B)
--------LICENSE(1KB)
--------api_dump.go(6KB)
--------main.go(6KB)
--------testbrowser.html(880B)
--------go.sum(4KB)
--------README.md(3KB)
--------build(243B)
--------go.mod(258B)
----.gitignore(139B)
----syntax()
--------lexer.go(20KB)
--------token_string.go(4KB)
--------simplify.go(5KB)
--------canonical.sh(317B)
--------nodes.go(23KB)
--------tokens.go(10KB)
--------parser.go(57KB)
--------doc.go(226B)
--------printer.go(32KB)
--------walk.go(6KB)
--------parser_test.go(53KB)
--------nodes_test.go(2KB)
--------example_test.go(4KB)
--------simplify_test.go(2KB)
--------walk_test.go(3KB)
--------parser_arithm.go(8KB)
--------quotestate_string.go(2KB)
--------filetests_test.go(92KB)
--------printer_test.go(30KB)
--------fuzz.go(2KB)
--------fuzz(454B)
--------braces.go(4KB)
----CHANGELOG.md(22KB)
----go.sum(3KB)
----README.md(6KB)
----.gitattributes(192B)
----go.mod(495B)