take a const char * in `linenoiseAddCompletion`