1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
This commit is contained in:
Tom Limoncelli
2023-01-28 11:09:38 -05:00
committed by GitHub
parent f9be836e31
commit 8249a4b95b
7 changed files with 15 additions and 16 deletions

View File

@ -1,7 +1,7 @@
package commands
import (
_ "embed"
_ "embed" // Required by go:embed
"os"
versionInfo "github.com/StackExchange/dnscontrol/v3/pkg/version"
@ -40,6 +40,7 @@ func (args *TypesArgs) flags() []cli.Flag {
//go:embed types/dnscontrol.d.ts
var dtsContent string
// WriteTypes creates the types file.
func WriteTypes(args TypesArgs) error {
file, err := os.Create(args.DTSFile)
if err != nil {