Skip to content

Scaffold action plugin through add subcommand #348

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 15, 2025

Conversation

shatakshiiii
Copy link
Contributor

@shatakshiiii shatakshiiii commented Jan 2, 2025

SUMMARY

  • This PR adds support to scaffold action plugins in an existing ansible collection using add subcommand.

  • Additionally scaffolds a module file with plugin DOCUMENTATION and EXAMPLES for corresponding action plugin.

  • Also, it creates a sample hello_world.py action plugin template when initializing a collection project using init subcommand.

CLI usage:

ansible-creator add plugin action your_plugin_name /path/to/your/existing/ansible_collection

Related JIRA: https://issues.redhat.com/browse/AAP-36202

Supporting docs for action plugin:

@shatakshiiii shatakshiiii added the enhancement New feature or request label Jan 2, 2025
@shatakshiiii shatakshiiii self-assigned this Jan 2, 2025
@shatakshiiii shatakshiiii force-pushed the action_plugin branch 2 times, most recently from d4fe76c to 6477c4d Compare January 3, 2025 05:55
@shatakshiiii shatakshiiii marked this pull request as ready for review January 3, 2025 07:56
@shatakshiiii shatakshiiii requested a review from a team as a code owner January 3, 2025 07:56
@shatakshiiii shatakshiiii requested a review from abhikdps January 3, 2025 07:56
@shatakshiiii shatakshiiii marked this pull request as draft January 3, 2025 11:00
@shatakshiiii shatakshiiii force-pushed the action_plugin branch 2 times, most recently from 7155cdc to 6100e07 Compare January 6, 2025 09:20
@shatakshiiii shatakshiiii force-pushed the action_plugin branch 4 times, most recently from db33d12 to c1e54da Compare January 8, 2025 10:27
@shatakshiiii shatakshiiii requested a review from abhikdps January 13, 2025 11:55
@shatakshiiii shatakshiiii marked this pull request as ready for review January 15, 2025 07:35
@shatakshiiii shatakshiiii requested a review from a team January 15, 2025 08:09
Copy link
Contributor

@abhikdps abhikdps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@shatakshiiii shatakshiiii merged commit 7ca0789 into ansible:main Jan 15, 2025
20 checks passed
@shatakshiiii shatakshiiii deleted the action_plugin branch January 15, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants