Skip to content

Commit

Permalink
chore(cli): add docstring for new helper + wrap line
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Aug 30, 2024
1 parent e8b7b78 commit 1c8709f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bento_authorization_service/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@


def grant_created_exit(g: int | None) -> Literal[0, 1]:
"""
Helper function to exit with a different message/error code depending on whether the grant was successfully created.
"""
if g is not None:
print(f"Grant successfully created: {g}")
return 0
Expand Down Expand Up @@ -209,7 +212,10 @@ async def public_data_access_cmd(_config: Config, db: Database, args) -> int:
resource=RESOURCE_EVERYTHING,
permissions=permissions,
expiry=None,
notes=f"Generated by the bento_authz CLI tool as a result of `bento_authz public-data-access {level} ...`",
notes=(
f"Generated by the bento_authz CLI tool as a result of `bento_authz public-data-access {level} ..."
f"`",
),
)
)
)
Expand Down

0 comments on commit 1c8709f

Please sign in to comment.