mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-26 04:47:44 +02:00
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:
parent
eeb4512b55
commit
972e4798b0
4 changed files with 23 additions and 54 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue