Home

Awesome

Setup Enry GitHub Action

Stand With Ukraine GitHub release functional-tests linting

This action sets up an enry tool.

Supported OS: Linux, macOS.

Inputs

<!-- prettier-ignore-start -->
NameRequiredDescriptionDefaultPossible values
versionNoEnry version that can be found here1.2.01.1.0, 1.0.0, etc.
<!-- prettier-ignore-end -->

Usage

name: Setup Enry

on: push

jobs:
  example:
    name: Example
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: fabasoad/setup-enry-action@main
      - name: Run CLI
        run: enry

Result

Run enry
59.57%  HTML
21.29%  JavaScript
14.25%  TypeScript
4.89%   CSS

Useful examples

Convert to json

# Simple output
enry
59.57%  HTML
21.29%  JavaScript
14.25%  TypeScript
4.89%   CSS

# Convert to JSON
echo "{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}"
{"HTML":"59.57%","JavaScript":"21.29%","TypeScript":"14.25%","CSS":"4.89%"}