Apply suggestions from code review
Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
parent
9d1700c4a0
commit
0fed30aa05
@ -137,7 +137,7 @@ mywire.tsv BOM (bill of materials) as tab-separated text file
|
|||||||
mywire.html HTML page with wiring diagram and BOM embedded
|
mywire.html HTML page with wiring diagram and BOM embedded
|
||||||
```
|
```
|
||||||
|
|
||||||
Wildcars in the file path are also supported to process multiple files at once, e.g.:
|
Wildcards in the file path are also supported to process multiple files at once, e.g.:
|
||||||
```
|
```
|
||||||
$ wireviz ~/path/to/files/*.yml
|
$ wireviz ~/path/to/files/*.yml
|
||||||
```
|
```
|
||||||
|
|||||||
@ -31,7 +31,11 @@ epilog = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@click.command(epilog=epilog, no_args_is_help=True)
|
@click.command(
|
||||||
|
epilog=epilog,
|
||||||
|
no_args_is_help=True,
|
||||||
|
context_settings=dict(help_option_names=["-h", "--help"]),
|
||||||
|
)
|
||||||
@click.argument("file", nargs=-1)
|
@click.argument("file", nargs=-1)
|
||||||
@click.option(
|
@click.option(
|
||||||
"-f",
|
"-f",
|
||||||
|
|||||||
@ -227,7 +227,7 @@ COLOR_CODES = {
|
|||||||
"BUVT", "VTBU", "OGVT", "VTOG", "GNVT", "VTGN", "BNVT", "VTBN", "SLVT", "VTSL",
|
"BUVT", "VTBU", "OGVT", "VTOG", "GNVT", "VTGN", "BNVT", "VTBN", "SLVT", "VTSL",
|
||||||
],
|
],
|
||||||
"TELALT": [ # 25x2: Tip and then ring of each pair
|
"TELALT": [ # 25x2: Tip and then ring of each pair
|
||||||
"WHBU", "BU", "WHOG", "OG", "WHGN", "GN", "WHBN", "BN", "WHSL", "SL",
|
"WHBU", "BU", "WHOG", "OG", "WHGN", "GN", "WHBN", "BN", "WHSL", "SL",
|
||||||
"RDBU", "BURD", "RDOG", "OGRD", "RDGN", "GNRD", "RDBN", "BNRD", "RDSL", "SLRD",
|
"RDBU", "BURD", "RDOG", "OGRD", "RDGN", "GNRD", "RDBN", "BNRD", "RDSL", "SLRD",
|
||||||
"BKBU", "BUBK", "BKOG", "OGBK", "BKGN", "GNBK", "BKBN", "BNBK", "BKSL", "SLBK",
|
"BKBU", "BUBK", "BKOG", "OGBK", "BKGN", "GNBK", "BKBN", "BNBK", "BKSL", "SLBK",
|
||||||
"YEBU", "BUYE", "YEOG", "OGYE", "YEGN", "GNYE", "YEBN", "BNYE", "YESL", "SLYE",
|
"YEBU", "BUYE", "YEOG", "OGYE", "YEGN", "GNYE", "YEBN", "BNYE", "YESL", "SLYE",
|
||||||
|
|||||||
@ -22,8 +22,8 @@ from wireviz.wv_colors import (
|
|||||||
)
|
)
|
||||||
from wireviz.wv_utils import (
|
from wireviz.wv_utils import (
|
||||||
NumberAndUnit,
|
NumberAndUnit,
|
||||||
awg_equiv,
|
|
||||||
aspect_ratio,
|
aspect_ratio,
|
||||||
|
awg_equiv,
|
||||||
mm2_equiv,
|
mm2_equiv,
|
||||||
parse_number_and_unit,
|
parse_number_and_unit,
|
||||||
remove_links,
|
remove_links,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user