-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --help-doc subcommand for doc in stdout mode (#225)
Add --help-doc subcommand for doc in stdout mode Reviewed-by: https://github.com/apps/ansible-zuul
- Loading branch information
Showing
17 changed files
with
549 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
tests/fixtures/integration/actions/doc/test_stdout.py/test/lookup_doc_with_ee/0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "test[0-ansible-navigator doc testorg.coll_1.lookup_1 -t lookup -m stdout -j --execution-environment true --ce podman-ansible-navigator lookup doc in stdout mode with EE-lookup_doc_with_ee-None]", | ||
"index": 0, | ||
"comment": "ansible-navigator lookup doc in stdout mode with EE", | ||
"output": [ | ||
"{", | ||
" \"testorg.coll_1.lookup_1\": {", | ||
" \"doc\": {", | ||
" \"author\": \"test\",", | ||
" \"collection\": \"testorg.coll_1\",", | ||
" \"description\": [", | ||
" \"This is test lookup plugin\"", | ||
" ],", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
" \"name\": \"lookup_1\",", | ||
" \"notes\": [", | ||
" \"This is a dummy lookup plugin\"", | ||
" ],", | ||
" \"options\": {", | ||
" \"bar\": {", | ||
" \"default\": \"candidate\",", | ||
" \"description\": [", | ||
" \"Dummy option I(bar)\"", | ||
" ],", | ||
" \"type\": \"str\"", | ||
" },", | ||
" \"foo\": {", | ||
" \"description\": [", | ||
" \"Dummy option I(foo)\"", | ||
" ],", | ||
" \"required\": true,", | ||
" \"type\": \"str\"", | ||
" }", | ||
" },", | ||
" \"plugin_type\": \"lookup\",", | ||
" \"short_description\": \"This is test lookup plugin\",", | ||
" \"version_added\": \"1.0.0\",", | ||
" \"version_added_collection\": \"testorg.coll_1\"", | ||
" },", | ||
" \"examples\": \"\\n - name: Retrieve a value deep inside a using a path\\n ansible.builtin.set_fact:\\n value: \\\"{{ lookup('testorg.coll_1.lookup_1', var1, var2) }}\\\"\\n \",", | ||
" \"metadata\": null,", | ||
" \"return\": {", | ||
" \"_raw\": {", | ||
" \"description\": [", | ||
" \"One or more zero-based indices of the matching list items.\"", | ||
" ]", | ||
" }", | ||
" }", | ||
" }", | ||
"}", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
] | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/fixtures/integration/actions/doc/test_stdout.py/test/lookup_doc_without_ee/0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "test[0-ansible-navigator doc testorg.coll_1.lookup_1 -t lookup -m stdout -j --execution-environment false-ansible-navigator lookup doc in stdout mode without EE-lookup_doc_without_ee-None]", | ||
"index": 0, | ||
"comment": "ansible-navigator lookup doc in stdout mode without EE", | ||
"output": [ | ||
"{", | ||
" \"testorg.coll_1.lookup_1\": {", | ||
" \"doc\": {", | ||
" \"author\": \"test\",", | ||
" \"collection\": \"testorg.coll_1\",", | ||
" \"description\": [", | ||
" \"This is test lookup plugin\"", | ||
" ],", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
" \"name\": \"lookup_1\",", | ||
" \"notes\": [", | ||
" \"This is a dummy lookup plugin\"", | ||
" ],", | ||
" \"options\": {", | ||
" \"bar\": {", | ||
" \"default\": \"candidate\",", | ||
" \"description\": [", | ||
" \"Dummy option I(bar)\"", | ||
" ],", | ||
" \"type\": \"str\"", | ||
" },", | ||
" \"foo\": {", | ||
" \"description\": [", | ||
" \"Dummy option I(foo)\"", | ||
" ],", | ||
" \"required\": true,", | ||
" \"type\": \"str\"", | ||
" }", | ||
" },", | ||
" \"plugin_type\": \"lookup\",", | ||
" \"short_description\": \"This is test lookup plugin\",", | ||
" \"version_added\": \"1.0.0\",", | ||
" \"version_added_collection\": \"testorg.coll_1\"", | ||
" },", | ||
" \"examples\": \"\\n - name: Retrieve a value deep inside a using a path\\n ansible.builtin.set_fact:\\n value: \\\"{{ lookup('testorg.coll_1.lookup_1', var1, var2) }}\\\"\\n \",", | ||
" \"metadata\": null,", | ||
" \"return\": {", | ||
" \"_raw\": {", | ||
" \"description\": [", | ||
" \"One or more zero-based indices of the matching list items.\"", | ||
" ]", | ||
" }", | ||
" }", | ||
" }", | ||
"}", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
] | ||
} |
65 changes: 65 additions & 0 deletions
65
tests/fixtures/integration/actions/doc/test_stdout.py/test/module_doc_with_ee/0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"name": "test[0-ansible-navigator doc testorg.coll_1.mod_1 -m stdout -j --execution-environment true --ce podman-ansible-navigator doc in stdout mode with EE-module_doc_with_ee-None]", | ||
"index": 0, | ||
"comment": "ansible-navigator doc in stdout mode with EE", | ||
"output": [ | ||
"{", | ||
" \"testorg.coll_1.mod_1\": {", | ||
" \"doc\": {", | ||
" \"author\": [", | ||
" \"test\"", | ||
" ],", | ||
" \"collection\": \"testorg.coll_1\",", | ||
" \"description\": [", | ||
" \"This is a test module\"", | ||
" ],", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
" \"has_action\": false,", | ||
" \"module\": \"mod_1\",", | ||
" \"notes\": [", | ||
" \"This is a dummy module\"", | ||
" ],", | ||
" \"options\": {", | ||
" \"bar\": {", | ||
" \"aliases\": [", | ||
" \"bam\"", | ||
" ],", | ||
" \"choices\": [", | ||
" \"candidate\",", | ||
" \"running\"", | ||
" ],", | ||
" \"default\": \"candidate\",", | ||
" \"description\": [", | ||
" \"Dummy option I(bar)\"", | ||
" ],", | ||
" \"type\": \"str\"", | ||
" },", | ||
" \"foo\": {", | ||
" \"description\": [", | ||
" \"Dummy option I(foo)\"", | ||
" ],", | ||
" \"type\": \"str\"", | ||
" }", | ||
" },", | ||
" \"short_description\": \"This is a test module\",", | ||
" \"version_added\": \"1.0.0\",", | ||
" \"version_added_collection\": \"testorg.coll_1\"", | ||
" },", | ||
" \"examples\": \"\\n- name: test task-1\\n testorg.coll_1.mod_1:\\n foo: somevalue\\n bar: candidate\\n\",", | ||
" \"metadata\": null,", | ||
" \"return\": {", | ||
" \"baz\": {", | ||
" \"description\": \"test return 1\",", | ||
" \"returned\": \"success\",", | ||
" \"sample\": [", | ||
" \"a\",", | ||
" \"b\"", | ||
" ],", | ||
" \"type\": \"list\"", | ||
" }", | ||
" }", | ||
" }", | ||
"}", | ||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
] | ||
} |
Oops, something went wrong.