jc

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

MIT License

Downloads
289.2K
Stars
7.5K
Committers
46

How to use jc with snap

How to build snap package

  • Install snapd. One or two.

  • Install snapcraft:

$ sudo snap install snapcraft --classic
  • Update snapd:
$ sudo snap refresh snapcraft --edge
  • Clone the repo:
$ git clone https://github.com/kellyjonbrazil/jc
  • Change the directory:
$ cd ./jc
  • Select branch:
$ git checkout snap-support
  • Initialize LXD:
$ lxd init --auto
  • Build .snap file:
$ snapcraft

How to install local snap file

$ snap install --dangerous ./jc_*_amd64.snap

How to use jc with plugins

  • Put your plugin in the "$HOME/.local/share/jc" directory.

  • To connect the directory, run:

snap connect jc:dot-jc-plugins snapd

Urls