Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Exit with correct return codes #29

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ansible_creator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def run(self: Cli) -> None:
subcommand(config=Config(**args), output=self.output).run()
except CreatorError as exc:
self.output.error(str(exc))
sys.exit(1)

self.output.debug(msg="exiting ansible-creator")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This collection is initialized by https://github.com/ansible-community/ansible_creator {{ creator_version }}
# This collection is initialized by https://github.com/ansible-community/ansible-creator {{ creator_version }}

# See https://docs.ansible.com/ansible/latest/dev_guide/collections_galaxy_meta.html

Expand Down
3 changes: 2 additions & 1 deletion src/ansible_creator/subcommands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def __init__(
) -> None:
"""Initialize the init action.

:param kwargs: Arguments passed for the init action
:param config: App configuration object.
:param output: Output class object.
"""
self._namespace: str = config.namespace
self._collection_name: str = config.collection_name
Expand Down