Example #1
0
func CatChain(cmd *cobra.Command, args []string) {
	// [csk]: if no args should we just start the checkedout chain?
	IfExit(ArgCheck(1, "ge", cmd, args))
	do.Name = args[0]
	do.Type = "toml"
	if len(args) > 1 {
		do.Type = args[1]
	}
	IfExit(chns.CatChain(do))
}
Example #2
0
func CatChain(cmd *cobra.Command, args []string) {
	IfExit(ArgCheck(1, "ge", cmd, args))
	do.Name = args[0]
	IfExit(chns.CatChain(do))
}