terminal: refactor edit/list to share getLocation code
Refactors edit and list so that they use the same code to get the current location and also both accept a locspec as an argument.
Showing
想要评论请 注册 或 登录
Refactors edit and list so that they use the same code to get the current location and also both accept a locspec as an argument.