Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -107,12 +107,12 @@ NAMED = {"release": "Release", "blocked_by": BLOCKED_BY, "exempt": "Exempt", "ta
|
||||
|
||||
|
||||
# plan_of is plan_store, except in the tests of a plan in Jira, which hand it a plan in memory.
|
||||
def main(argv: list[str], folder: pathlib.Path, home: pathlib.Path, stdin: typing.TextIO, plan_of: typing.Callable[[ProjectConfig], PlanStore] = plan_store) -> int:
|
||||
def main(argv: list[str], folder: pathlib.Path, home: pathlib.Path, env: typing.Mapping[str, str], stdin: typing.TextIO, plan_of: typing.Callable[[ProjectConfig], PlanStore] = plan_store) -> int:
|
||||
if argv[:1] in (["-h"], ["--help"]):
|
||||
print(__doc__.strip())
|
||||
return 0
|
||||
args = parser().parse_args(argv)
|
||||
config = located(str(folder), home)
|
||||
config = located(str(folder), home, env)
|
||||
if isinstance(config, Failure):
|
||||
done: str | Failure = config
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user