加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
phanes.go 985 Bytes
一键复制 编辑 原始数据 按行查看 历史
lizhi 提交于 2024-01-04 11:03 . init code
package main
import (
"log"
"github.com/phanes-o/phanes/internal/env"
"github.com/phanes-o/phanes/internal/generate"
"github.com/phanes-o/phanes/internal/project"
"github.com/phanes-o/phanes/internal/proto"
"github.com/phanes-o/phanes/internal/register"
"github.com/phanes-o/phanes/internal/run"
"github.com/phanes-o/phanes/internal/upgrade"
"github.com/spf13/cobra"
)
// release is the current phanes tool version.
var release = version
var rootCmd = &cobra.Command{
Use: "phanes",
Short: "phanes: An elegant toolkit for Go microservices.",
Long: `phanes: An elegant toolkit for Go microservices.`,
Version: release,
}
func init() {
rootCmd.AddCommand(project.CmdNew)
rootCmd.AddCommand(proto.CmdProto)
rootCmd.AddCommand(upgrade.CmdUpgrade)
rootCmd.AddCommand(run.CmdRun)
rootCmd.AddCommand(env.Cmd)
rootCmd.AddCommand(generate.Cmd)
rootCmd.AddCommand(register.Cmd)
}
func main() {
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化