Ai
2 Star 1 Fork 3

NanhuLab/tcas-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
detail.go 711 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* @Author: jffan
* @Date: 2024-07-31 16:39:36
* @LastEditTime: 2024-08-02 16:56:48
* @LastEditors: jffan
* @FilePath: \gitee-tcas\cmd\policy\detail.go
* @Description: get the detail of the policy
*/
package policy
import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
var policyDetailCmd = &cobra.Command{
Use: "detail",
Short: "get the detail of the policy",
Long: `get the detail of the policy`,
Run: func(cmd *cobra.Command, args []string) {
logrus.Infof("policy detail called")
},
}
func init() {
Cmd.AddCommand(policyDetailCmd)
//set parameter for policy delete
policyDetailCmd.Flags().StringP("url", "u", "https://api.trustcluster.cc", "optional, tcas's api url")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nanhu-lab/tcas-cli.git
git@gitee.com:nanhu-lab/tcas-cli.git
nanhu-lab
tcas-cli
tcas-cli
v0.0.2

搜索帮助