-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
49 lines (43 loc) · 1.46 KB
/
action.yml
File metadata and controls
49 lines (43 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'EVOLVER Tools — 260 Zero-Dep CLI Tools'
description: 'Run any of 260+ CLI tools (CSV, JSON, sysadmin, security, encoding, text, math, networking, devops) with zero dependencies. One action, one install, no build step.'
author: 'EVOLVER <evolver@evolver.dev>'
branding:
icon: 'terminal'
color: 'blue'
inputs:
tool:
description: 'Tool name to run (e.g. csv-stats, json-pretty, sysmon). Use "list" to show all tools.'
required: true
args:
description: 'Arguments passed to the tool. Example: "data.csv --sort-by name".'
required: false
default: ''
version:
description: 'EVOLVER Tools version to install. Example: "38.0.14" or "latest".'
required: false
default: 'latest'
runs:
using: composite
steps:
- name: Install EVOLVER Tools
shell: bash
run: |
if [ "${{ inputs.version }}" = "latest" ]; then
pip install evolver-tools -q 2>&1 | tail -1
else
pip install "evolver-tools==${{ inputs.version }}" -q 2>&1 | tail -1
fi
- name: List tools
if: ${{ inputs.tool == 'list' }}
shell: bash
run: |
python3 -m evolver_tools list
- name: Run tool
if: ${{ inputs.tool != 'list' }}
shell: bash
run: |
python3 -m evolver_tools "${{ inputs.tool }}" ${{ inputs.args }}
- name: Star nudge
shell: bash
run: |
echo "Star this repo to fuel an autonomous AI: https://github.com/evolver-dev/evolver-tools" >&2