Skip to content

Commit b6567cd

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
merge task args
1 parent 1d79573 commit b6567cd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/build.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,16 @@ def main(test, dry, remote):
105105
)
106106
return 0
107107

108-
args = [
109-
"task docs:publish",
110-
f"DOCS_REMOTE={remote}",
111-
f"DOCS_VERSION={docs_version}",
112-
f"DOCS_ALIAS={alias}",
113-
]
108+
# Taskfile args aren't regular args so we put everything in one string
109+
cmd = (
110+
f"task docs:publish DOCS_REMOTE={remote} DOCS_VERSION={docs_version} DOCS_ALIAS={alias}",
111+
)
114112

115113
if dry:
116-
print(" ".join(args))
114+
print(cmd)
117115
return 0
118116

119-
subprocess.run(args, shell=True, check=True, cwd=repo_dir)
117+
subprocess.run([cmd], shell=True, check=True, cwd=repo_dir)
120118

121119

122120
# Usage:

0 commit comments

Comments
 (0)