ScriptCs.Shebang:* nix shebang 对 ScriptCs 的支持

时间:2021-07-07 17:51:26
【文件属性】:
文件名称:ScriptCs.Shebang:* nix shebang 对 ScriptCs 的支持
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-07 17:51:26
C# ScriptCs.Shebang 对支持 模块告诉 ScriptCs 在解析时忽略 shebang 行。 如果没有这个模块,但是在 .csx 文件中有 shebang,你会得到语法错误。 该模块对于在 *nix 系统上使用编写脚本非常有用。 安装 安装 为 *nix 系统安装 : 使用以下内容在 /usr/bin(或 PATH 中的任何其他目录)中创建文件: 脚本 #! /bin/sh sciptcs_exe= < path> mono ${scriptcs_exe} $* scriptcs_sh #! /bin/bash scriptcs $1 -- ${ *: 1} 使这些文件可执行: # In directory with scripts from above chmod +x scriptcs chmod +x scriptcs
【文件预览】:
ScriptCs.Shebang-master
----.gitignore(340B)
----src()
--------.gitignore(18B)
--------ScriptCsHashbangSupport.sln(1011B)
--------ScriptCs.ShebangModule()
----LICENSE.md(1KB)
----README.md(1KB)
----.gitattributes(2KB)

网友评论