Extract the getting of functions into a new method
Extract the getting of functions into a new method

This means this method can be used to get a list of catergories for the
view command.

wrightg42/todo-list,It423/todo-list