Command-line interface

Command-line interface#

$ tdc --help
WARNING: TDC registry not existing in /home/docs/.local/share/transport-data/registry
To clone, run: tdc registry clone
Usage: tdc [OPTIONS] COMMAND [ARGS]...

  Transport Data Commons tools.

Options:
  --help  Show this message and exit.

Commands:
  adb     CLI for :mod:`.adb`.
  config  Manipulate configuration.
  estat   Eurostat (ESTAT) provider.
  iamc    Demonstrate IAMC structure generation.
  jrc     CLI for :mod:`.jrc`.
  oica    CLI for :mod:`.oica`.
  org     Information about the TDCI per se.
  proto   TDC prototype debugging.
  store   Manipulate local data storage.

Code reference#

Command-line interface.

Module data

MODULES_WITH_CLI

List of (sub)modules that define CLI (sub)commands.

transport_data.cli.MODULES_WITH_CLI = ['adb.cli', 'config', 'estat', 'iamc.cli', 'jrc.cli', 'oica.cli', 'org.cli', 'proto.cli', 'store'][source]#

List of (sub)modules that define CLI (sub)commands. Each should contain a @click.command() named “main”.