def list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry(cfg) elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": car.list_cars() else: raise exceptions.SystemSetupError("Cannot list unknown configuration option [%s]" % what)
def list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry(cfg) elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": car.list_cars() else: raise exceptions.SystemSetupError( "Cannot list unknown configuration option [%s]" % what)