mirror of
https://github.com/mjl-/mox.git
synced 2024-12-25 16:03:48 +03:00
add missing file from previous commit
This commit is contained in:
parent
8f7fc3773b
commit
9a4fa8633f
1 changed files with 26 additions and 0 deletions
26
licenses.go
Normal file
26
licenses.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"os"
|
||||
|
||||
"github.com/mjl-/mox/mox-"
|
||||
)
|
||||
|
||||
//go:embed LICENSE.MIT LICENSE.MPLv2.0 licenses/*
|
||||
var licensesFsys embed.FS
|
||||
|
||||
func init() {
|
||||
mox.LicensesFsys = licensesFsys
|
||||
}
|
||||
|
||||
func cmdLicenses(c *cmd) {
|
||||
c.help = `Print licenses of mox source code and dependencies.`
|
||||
args := c.Parse()
|
||||
if len(args) != 0 {
|
||||
c.Usage()
|
||||
}
|
||||
|
||||
err := mox.LicensesWrite(os.Stdout)
|
||||
xcheckf(err, "write")
|
||||
}
|
Loading…
Reference in a new issue