Move command list from configuration to code.

Standart commands are now in ui.py instead of
.github/workflows/test.yml.
This commit is contained in:
Sergey Vartanov 2021-09-10 09:53:44 +03:00
parent eeb4512b55
commit 972e4798b0
4 changed files with 23 additions and 54 deletions

View file

@ -14,6 +14,14 @@ __email__ = "me@enzet.ru"
BOXES: str = " ▏▎▍▌▋▊▉"
BOXES_LENGTH: int = len(BOXES)
COMMANDS: dict[str, list[str]] = {
"render": ["render", "-b", "10.000,20.000,10.001,20.001"],
"icons": ["icons"],
"mapcss": ["mapcss"],
"element": ["element", "--node", "amenity=bench,material=wood"],
"tile": ["tile", "--coordinates", "50.000,40.000"],
}
def parse_options(args: list[str]) -> argparse.Namespace:
"""Parse Map Machine command-line options."""