Create helper function that gathers needed information to show in table from cli