浏览文件
licenses.go
18 行 · 452 B历史下载| 1 | package cli |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | |
| 6 | agentvm "github.com/sylvinus/agent-vm" |
| 7 | ) |
| 8 | |
| 9 | // `licenses`: agent-vm's license, the notice about what is built into it, |
| 10 | // and the licenses of those parts, as embedded at build time. |
| 11 | func licensesCmd(args []string, io IO) int { |
| 12 | if len(args) > 0 { |
| 13 | fmt.Fprintln(io.Stderr, "Usage: agent-vm licenses") |
| 14 | return 2 |
| 15 | } |
| 16 | fmt.Fprint(io.Stdout, agentvm.License, "\n", agentvm.Notice, "\n", agentvm.ThirdPartyLicenses) |
| 17 | return 0 |
| 18 | } |

