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.

7922
210
Python

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