1 Star 0 Fork 5

C-Band / vdns

forked from gngpp / vdns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 749 Bytes
一键复制 编辑 原始数据 按行查看 历史
sudo-chenjiaqi 提交于 2022-04-01 16:30 . refactor: move package
package main
import (
"github.com/urfave/cli/v2"
"os"
"time"
"vdns/lib/api"
"vdns/lib/vlog"
"vdns/terminal"
)
var app = cli.NewApp()
//goland:noinspection SpellCheckingInspection
const (
CliVersion = api.Version
CliName = "vdns"
Usage = "A tool that supports multi-DNS service provider resolution operations"
)
func main() {
initCLI()
err := app.Run(os.Args)
if err != nil {
vlog.Fatalf("running err: %v", err)
return
}
}
func initCLI() {
app.Commands = []*cli.Command{
terminal.ShowCommand(),
terminal.ConfigCommand(),
terminal.ResolveRecord(),
terminal.ServerCommand(),
}
}
func init() {
app.Name = CliName
app.HelpName = CliName
app.Usage = Usage
app.Compiled = time.Now()
app.Version = CliVersion
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/C-BAND/vdns.git
git@gitee.com:C-BAND/vdns.git
C-BAND
vdns
vdns
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891