// CallContext calls Call but with a specified context.Context.
CallContext calls Call but with a specified context.Context.
// CallContext calls Call but with a specified context . Context .
func CallContext(ctx context.Context, cmd Function, args ...string) int {
	prefix := strings.ToUpper(snakecase(nameOf(cmd)))
	if prefix != "" {
		prefix = prefix + "_"
	}
	code, err := cmd.Call(ctx, args, environ(prefix))
	switch err.(type) {
	case nil:
	case *Help, *Usage:
		fmt.Fprintln(Err, err)
	default:
		if err != nil {
			log.Print(err)
			code = 1
		}
	}
	return code
}
func CallContext ( ctx context . Context , cmd Function , args ... string ) int { prefix := strings . ToUpper ( snakecase ( nameOf ( cmd ) ) ) if prefix != " " { prefix = prefix + " " } code , err := cmd . Call ( ctx , args , environ ( prefix ) ) switch err . ( type ) { case nil : case * Help , * Usage : fmt . Fprintln ( Err , err ) default : if err != nil { log . Print ( err ) code = 1 } } return code }
CallContext calls Call but with a specified context.Context.
CallContext calls Call but with a specified context . Context .