Skip to content

Commit 067f3b7

Browse files
committed
CAP-ADD: yakerizer invoke done
1 parent b68cba2 commit 067f3b7

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

invokes/yakerize/yakerize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,28 @@ def main(
7070
parser.add_argument(
7171
"--manifest-path",
7272
type=str,
73-
required=False,
73+
required=True,
7474
default="./manifest.yml",
7575
help="The path to the manifest file."
7676
)
7777
parser.add_argument(
7878
"--logo-path",
7979
type=str,
80-
required=False,
80+
required=True,
8181
default="./logo.png",
8282
help="The path to the logo file."
8383
)
8484
parser.add_argument(
8585
"--license-path",
8686
type=str,
87-
required=False,
87+
required=True,
8888
default="./LICENSE",
8989
help="The path to the license file."
9090
)
9191
parser.add_argument(
9292
"--readme-path",
9393
type=str,
94-
required=False,
94+
required=True,
9595
default="./README.md",
9696
help="The path to the readme file."
9797
)

tasks.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
from invoke import task
33

44
PATH_MANIFEST = "./manifest.yml"
5+
PATH_LOGO = "./logo.png"
6+
PATH_LICENSE = "./LICENSE"
7+
PATH_README = "./README.md"
8+
59
PATH_SETUP = "./src/gh/diffCheck/setup.py"
610
PATH_INIT = "./src/gh/diffCheck/diffCheck/__init__.py"
711
PATH_CMAKE = "./CMakeLists.txt"
12+
813
DIR_IN_GHUSER_COMPONENTS = "./src/gh/components"
914
DIR_OUT_GHUER_COMPONENTS = "./build/gh"
1015

16+
DIR_OUT_YAK = "./build/yak"
1117

1218
@task
1319
def versionize(c):
@@ -42,12 +48,14 @@ def flagerize(c, package_name="diffCheck"):
4248
--from-manifest \
4349
--path-manifest {PATH_MANIFEST}")
4450

45-
46-
47-
4851
@task
4952
def yakerize(c):
5053
path_yakerize = "./invokes/yakerize/yakerize.py"
51-
gh_components_dir = "./build/gh"
5254
build_yak_dir = "./build/yak"
53-
c.run(f"python {path_yakerize} --gh-components-dir {gh_components_dir} --build-dir {build_yak_dir}")
55+
c.run(f"python {path_yakerize} \
56+
--gh-components-dir {DIR_OUT_GHUER_COMPONENTS} \
57+
--build-dir {DIR_OUT_YAK} \
58+
--manifest-path {PATH_MANIFEST} \
59+
--logo-path {PATH_LOGO} \
60+
--license-path {PATH_LICENSE} \
61+
--readme-path {PATH_README}")

0 commit comments

Comments
 (0)