Files
decky-loader/scripts/plugin-info.sh
Yassine Gherbi b15392b5f2 feat: VSCode Tasks Runner and deckdebug.sh Enhancements (#763)
* feat: add dependency checks in deckdebug.sh

* feat: add argument validation to deckdebug.sh

* feat: remove unnecessary (testing) dependency from deckdebug.sh

* .

* feat: add script to run VSCode tasks with dependency handling

* fix: update script usage instructions in tasks.sh

* fix: dependency check after checking for nix

* feat: add nix shell support in tasks.sh

* fix: match the dependencies

Resolve: d22612c207 (r2039722788)

* fix incorrect path in usage

---------

Co-authored-by: AAGaming <aagaming00@protonmail.com>
2025-04-23 08:10:28 -04:00

22 lines
792 B
Bash
Executable File

#!/bin/bash
# Adapted from a script provided by Jaynator495.
# Make sure to place in home directory, chmod +x plugin-info.sh and then run with ./plugin-info.sh
# Define the directory to scan
directory_to_scan="~/homebrew/plugins"
# Loop through each subdirectory (one level deep)
for dir in "$directory_to_scan"/*/; do
# Check if package.json exists in the subdirectory
if [ -f "${dir}package.json" ]; then
# Extract name and version from the package.json file using jq
name=$(jq -r '.name' "${dir}package.json")
version=$(jq -r '.version' "${dir}package.json")
# Output the name and version
echo "Directory: ${dir}"
echo "Package Name: $name"
echo "Version: $version"
echo "-----------------------------"
fi
done