refactor(fleetctl): Use an interface between cmd and registry to test commands on isolation.