John Walshe, Irish Republic