mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
Merge branch 'master' into dev
# Conflicts: # jc/man/jc.1.gz # man/jc.1 # man/jc.1.gz
This commit is contained in:
@ -21,6 +21,7 @@ jc changelog
|
|||||||
- Fix Man page location in source packages
|
- Fix Man page location in source packages
|
||||||
- Add sfdisk command parser tested on linux
|
- Add sfdisk command parser tested on linux
|
||||||
- Update unit test files to change the timezone when needed (POSIX only)
|
- Update unit test files to change the timezone when needed (POSIX only)
|
||||||
|
- Binaries and DEB/RPM/MSI packages now include Python 3.9.5 interpreter
|
||||||
|
|
||||||
20210628 v1.15.6
|
20210628 v1.15.6
|
||||||
- Fix issue to only load local plugin parsers that have filenames that end in .py
|
- Fix issue to only load local plugin parsers that have filenames that end in .py
|
||||||
|
@ -2558,7 +2558,7 @@ rpm_qia | jc --rpm_qi -p # or: jc -p rpm -qia
|
|||||||
```
|
```
|
||||||
### sfdisk
|
### sfdisk
|
||||||
```bash
|
```bash
|
||||||
sfdisk -l | jc --sfdisk -p # or jc -p sfdisk
|
sfdisk -l | jc --sfdisk -p # or jc -p sfdisk -l
|
||||||
```
|
```
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
> Try the new `jc` [web demo](https://jc-web-demo.herokuapp.com/)!
|
> Try the `jc` [web demo](https://jc-web-demo.herokuapp.com/)
|
||||||
|
|
||||||
> JC is [now available](https://galaxy.ansible.com/community/general) as an Ansible filter plugin in the `community.general` collection! See this [blog post](https://blog.kellybrazil.com/2020/08/30/parsing-command-output-in-ansible-with-jc/) for an example.
|
> JC is [now available](https://galaxy.ansible.com/community/general) as an Ansible filter plugin in the `community.general` collection! See this [blog post](https://blog.kellybrazil.com/2020/08/30/parsing-command-output-in-ansible-with-jc/) for an example.
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ Use Cases:
|
|||||||
- [Nornir command output parsing](https://blog.kellybrazil.com/2020/12/09/parsing-command-output-in-nornir-with-jc/)
|
- [Nornir command output parsing](https://blog.kellybrazil.com/2020/12/09/parsing-command-output-in-nornir-with-jc/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
There are several ways to get `jc`. You can install via `pip`; other OS package repositories like `apt-get`, `dnf`, `zypper`, `pacman`, `nix-env`, `guix`, `brew`, or `portsnap`; via DEB, RPM, and MSI packaged binaries for linux and Windows; or by downloading the correct binary for your architecture and running it anywhere on your filesystem.
|
There are several ways to get `jc`. You can install via `pip`, OS package repositories, via DEB/RPM/MSI packaged binaries for linux and Windows, or by downloading the correct binary for your architecture and running it anywhere on your filesystem.
|
||||||
|
|
||||||
### Pip (macOS, linux, unix, Windows)
|
### Pip (macOS, linux, unix, Windows)
|
||||||
```bash
|
```bash
|
||||||
@ -100,7 +100,7 @@ pip3 install jc
|
|||||||
| Arch linux | `pacman -S jc` |
|
| Arch linux | `pacman -S jc` |
|
||||||
| NixOS linux | `nix-env -iA nixpkgs.jc` or `nix-env -iA nixos.jc` |
|
| NixOS linux | `nix-env -iA nixpkgs.jc` or `nix-env -iA nixos.jc` |
|
||||||
| Guix System linux | `guix install jc` |
|
| Guix System linux | `guix install jc` |
|
||||||
| MacOS | `brew install jc` |
|
| macOS | `brew install jc` |
|
||||||
| FreeBSD | `portsnap fetch update && cd /usr/ports/textproc/py-jc && make install clean` |
|
| FreeBSD | `portsnap fetch update && cd /usr/ports/textproc/py-jc && make install clean` |
|
||||||
| Ansible filter plugin | `ansible-galaxy collection install community.general` |
|
| Ansible filter plugin | `ansible-galaxy collection install community.general` |
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Examples:
|
|||||||
# but can be preserved with the -r argument
|
# but can be preserved with the -r argument
|
||||||
occupation:"Engineer"
|
occupation:"Engineer"
|
||||||
|
|
||||||
$ cat keyvalue.txt | jc --ini -p
|
$ cat keyvalue.txt | jc --kv -p
|
||||||
{
|
{
|
||||||
"name": "John Doe",
|
"name": "John Doe",
|
||||||
"address": "555 California Drive",
|
"address": "555 California Drive",
|
||||||
|
@ -35,7 +35,7 @@ Examples:
|
|||||||
# but can be preserved with the -r argument
|
# but can be preserved with the -r argument
|
||||||
occupation:"Engineer"
|
occupation:"Engineer"
|
||||||
|
|
||||||
$ cat keyvalue.txt | jc --ini -p
|
$ cat keyvalue.txt | jc --kv -p
|
||||||
{
|
{
|
||||||
"name": "John Doe",
|
"name": "John Doe",
|
||||||
"address": "555 California Drive",
|
"address": "555 California Drive",
|
||||||
|
4
man/jc.1
4
man/jc.1
@ -1,4 +1,8 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
.TH jc 1 2021-08-13 1.16.1 "JSON CLI output utility"
|
.TH jc 1 2021-08-13 1.16.1 "JSON CLI output utility"
|
||||||
|
=======
|
||||||
|
.TH jc 1 2021-07-22 1.16.0 "JSON CLI output utility"
|
||||||
|
>>>>>>> master
|
||||||
.SH NAME
|
.SH NAME
|
||||||
jc \- JSONifies the output of many CLI tools and file-types
|
jc \- JSONifies the output of many CLI tools and file-types
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
> Try the new `jc` [web demo](https://jc-web-demo.herokuapp.com/)!
|
> Try the `jc` [web demo](https://jc-web-demo.herokuapp.com/)
|
||||||
|
|
||||||
> JC is [now available](https://galaxy.ansible.com/community/general) as an Ansible filter plugin in the `community.general` collection! See this [blog post](https://blog.kellybrazil.com/2020/08/30/parsing-command-output-in-ansible-with-jc/) for an example.
|
> JC is [now available](https://galaxy.ansible.com/community/general) as an Ansible filter plugin in the `community.general` collection! See this [blog post](https://blog.kellybrazil.com/2020/08/30/parsing-command-output-in-ansible-with-jc/) for an example.
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ Use Cases:
|
|||||||
- [Nornir command output parsing](https://blog.kellybrazil.com/2020/12/09/parsing-command-output-in-nornir-with-jc/)
|
- [Nornir command output parsing](https://blog.kellybrazil.com/2020/12/09/parsing-command-output-in-nornir-with-jc/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
There are several ways to get `jc`. You can install via `pip`; other OS package repositories like `apt-get`, `dnf`, `zypper`, `pacman`, `nix-env`, `guix`, `brew`, or `portsnap`; via DEB, RPM, and MSI packaged binaries for linux and Windows; or by downloading the correct binary for your architecture and running it anywhere on your filesystem.
|
There are several ways to get `jc`. You can install via `pip`, OS package repositories, via DEB/RPM/MSI packaged binaries for linux and Windows, or by downloading the correct binary for your architecture and running it anywhere on your filesystem.
|
||||||
|
|
||||||
### Pip (macOS, linux, unix, Windows)
|
### Pip (macOS, linux, unix, Windows)
|
||||||
```bash
|
```bash
|
||||||
@ -100,7 +100,7 @@ pip3 install jc
|
|||||||
| Arch linux | `pacman -S jc` |
|
| Arch linux | `pacman -S jc` |
|
||||||
| NixOS linux | `nix-env -iA nixpkgs.jc` or `nix-env -iA nixos.jc` |
|
| NixOS linux | `nix-env -iA nixpkgs.jc` or `nix-env -iA nixos.jc` |
|
||||||
| Guix System linux | `guix install jc` |
|
| Guix System linux | `guix install jc` |
|
||||||
| MacOS | `brew install jc` |
|
| macOS | `brew install jc` |
|
||||||
| FreeBSD | `portsnap fetch update && cd /usr/ports/textproc/py-jc && make install clean` |
|
| FreeBSD | `portsnap fetch update && cd /usr/ports/textproc/py-jc && make install clean` |
|
||||||
| Ansible filter plugin | `ansible-galaxy collection install community.general` |
|
| Ansible filter plugin | `ansible-galaxy collection install community.general` |
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user