fix(cli): convert patterns from array to string