Update this function to accept a smaller interface, as it doesn't need all of "CLI". Also return errors encountered during its operation (although the caller currently has no error return on its own). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>