示例#1
0
// list known
func ListKnownServices() {
	if err := srv.ListKnown(do); err != nil {
		return
	}

	fmt.Println(do.Result)
}
示例#2
0
// list known
func ListKnownServices(cmd *cobra.Command, args []string) {
	if err := srv.ListKnown(do); err != nil {
		return
	}

	fmt.Println(do.Result)
}
示例#3
0
func ListAllKnown() {
	if err := srv.ListKnown(do); err != nil {
		return
	}
	fmt.Printf("Services:\n%s \n\n", do.Result)

	if err := chns.ListKnown(do); err != nil {
		return
	}
	fmt.Printf("Chains:\n%s \n", do.Result)

}