mk/lib/init.go

21 lines
281 B
Go
Raw Permalink Normal View History

2021-09-29 11:55:11 +00:00
package lib
import (
_ "embed"
"os"
)
//go:embed res/.mk.yaml
var sample []byte
//go:embed res/mk.json
var validator []byte
func InitFile() error {
return os.WriteFile(CLI.File, sample, 0600)
}
func DumpValidator() error {
return os.WriteFile(CLI.File, validator, 0600)
}