Merge pull request 'cli: add test for --help' (#79) from Mic92-mic92 into main
All checks were successful
build / test (push) Successful in 7s

This commit is contained in:
clan-bot 2023-08-03 13:33:52 +00:00
commit 5ac5e32214
3 changed files with 5 additions and 3 deletions

View File

@ -21,8 +21,7 @@ rest=$(echo "$COMMIT_MSG" | tail -n+2)
if [[ "$firstLine" == "$rest" ]]; then
rest=""
fi
git push -u "$remoteName" HEAD:refs/heads/"$tempRemoteBranch"
git push --force -u "$remoteName" HEAD:refs/heads/"$tempRemoteBranch"
tea pr create \
--title "$firstLine" \

View File

@ -77,5 +77,8 @@ python3.pkgs.buildPythonPackage {
installShellCompletion --fish --name clan.fish \
<(${argcomplete}/bin/register-python-argcomplete --shell fish clan)
'';
checkPhase = ''
PYTHONPATH= $out/bin/clan --help
'';
meta.mainProgram = "clan";
}

View File

@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "clan"
description = "cLAN CLI tool"
dynamic = [ "version" ]
scripts = { clan = "clan_cli.cli:main" }
scripts = { clan = "clan_cli:main" }
[tool.setuptools.packages]
find = {}