mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-13 01:24:22 -07:00
JC plugin (#750)
* initial commit
* add contrib info
* remove nonfunctional \n in error messate
* add documentation and optional quiet and raw arguments
* add changelog fragment
* add aliases
* add initial test
* change folder name
* add pip install jc for tests
* simplify changelog since tests were failing
* add newline to end of file
* fix trailing whitespace in comment causing test failure
* use pip3 since tests are failing using python2.6 pip
* skip python 2.7 tests since jc only supports python 3
* use pip instead of pip3
* add python version requirement
(cherry picked from commit b2a222b136
)
This commit is contained in:
parent
7d6a1a4483
commit
54644179ea
6 changed files with 119 additions and 0 deletions
2
changelogs/fragments/750-jc-new-filter.yaml
Normal file
2
changelogs/fragments/750-jc-new-filter.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- jc - new filter to convert the output of many shell commands and file-types to JSON. Uses the jc library at https://github.com/kellyjonbrazil/jc. For example, filtering the STDOUT output of ``uname -a`` via ``{{ result.stdout | community.general.jc('uname') }}``. Requires Python 3.6+ (https://github.com/ansible-collections/community.general/pull/750).
|
Loading…
Add table
Add a link
Reference in a new issue