문제

I currently have multiple controllers but am only interested in seeing the terminal output of

padrino rake routes

for a specific controller. Is there a flag that can achieve this. Or commandline regex?

Thanks internet!

도움이 되었습니까?

해결책

I'd suggest using pipes to pass the output of the padrino rake routes command to awk to filter only the lines which the name of your controller, or the number of the row is less than 4 (to include the preamble)

padrino rake routes | awk '/:your_controller_name/ || NR < 4'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top