Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kellyjonbrazil/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.
https://github.com/kellyjonbrazil/jc

bash bash-scripting cli command-line command-line-interface command-line-tool convert json linux parsers python python-library scripting serialize shell-scripting yaml

Last synced: 10 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# How to use `jc` with `snap`

## How to build `snap` package

- Install `snapd`. [One](https://snapcraft.io/docs/installing-snapd) or [two](https://github.com/don-rumata/ansible-role-install-snap).

- Install `snapcraft`:

```bash
$ sudo snap install snapcraft --classic
```

- Update snapd:

```bash
$ sudo snap refresh snapcraft --edge
```

- Clone the repo:

```bash
$ git clone https://github.com/kellyjonbrazil/jc
```

- Change the directory:

```bash
$ cd ./jc
```

- Select branch:

```bash
$ git checkout snap-support
```

- Initialize LXD:

```bash
$ lxd init --auto
```

- Build `.snap` file:

```bash
$ snapcraft
```

## How to install local snap file

```bash
$ 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:

```bash
snap connect jc:dot-jc-plugins snapd
```

## Urls

-

-

-

-

-