proxy.golang.org : github.com/mdempsky/gosh
The gosh command runs shell commands embedded in Go source file comments. Usage: Gosh searches source files for comments that start with "// % " or "/* % ". It then runs the first line of the comment as a shell command, and replaces the remaining lines with the output of the command. It also replaces the "%" with "#". Shell commands are run concurrently. For security, shell commands are disabled by default. The "//gosh:ok" directive enables commands, and the "//gosh:deny" directive disables them again. Both directives only apply to the end of their innermost scope.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/mdempsky/gosh
License: BSD-3-Clause
Latest release: 28 days ago
Namespace: github.com/mdempsky
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago