2023-02-02 20:22:18 +07:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2023-02-18 17:27:28 +07:00
|
|
|
* Copyright (c) 2022-2023, v2rayA Organization <team@v2raya.org>
|
2023-02-02 20:22:18 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
2023-02-07 22:49:30 +07:00
|
|
|
"github.com/v2rayA/dae/control"
|
2023-02-02 20:22:18 +07:00
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var output string
|
|
|
|
flag.StringVar(&output, "o", "", "Place the output into <file>.")
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
if output == "" {
|
|
|
|
fmt.Println("Please provide flag \"-o <file>\"")
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
fmt.Printf("Generating %v\n", output)
|
|
|
|
control.GenerateObjects(output)
|
|
|
|
fmt.Printf("Generated %v\n", output)
|
|
|
|
}
|