1package main
2
3import (
4 "embed"
5 "os"
6
7 "github.com/mjl-/mox/mox-"
8)
9
10//go:embed LICENSE.MIT LICENSE.MPLv2.0 licenses/*
11var licensesFsys embed.FS
12
13func init() {
14 mox.LicensesFsys = licensesFsys
15}
16
17func cmdLicenses(c *cmd) {
18 c.help = `Print licenses of mox source code and dependencies.`
19 args := c.Parse()
20 if len(args) != 0 {
21 c.Usage()
22 }
23
24 err := mox.LicensesWrite(os.Stdout)
25 xcheckf(err, "write")
26}
27