Installation

Ubuntu

Download an archive or clone the repository. And place the file jq-front, lib, and schema in a directory which is on your PATH. Following dependencies will be required by jq-front

  • bash

  • jq

  • ajv-cli

    • npm

  • yq

    • python-pip

    • python

Warning
The version of yq installed through, snap install yq doesn’t work for jq-front. Visit yq site to know it more.
Note
All the direct and indirect dependencies are found in the Dockerfile.

If you are already using docker and bash, this is the easiest way to use jq-front. To install docker, visit

Add a following entry to your .bashrc or a file sourced through it (such as .profile on Mac OSX).

function jq-front() {
  docker run --rm -i \
    -v "${HOME}:/var/lib/jf/${HOME}" \
    -v "${HOME}/.jq-front.rc:/root/.jq-front.rc" \
    -e JF_PATH_BASE="/var/lib/jf" \
    -e JF_PATH="${JF_PATH}" \
    -e JF_DEBUG=${JF_DEBUG:-disabled} \
    -e JF_CWD="$(pwd)" \
    dakusui/jq-front:"${JF_DOCKER_TAG:-v0.57}" "${@}"
}
NOTE

This approach only allows you to process files under $HOME directory.

To install bash on windows, install-bash-on-windows will be helpful.

top