cerras/addons-site
Clone
Summary
Browse
Changes
Graph
Initial work to get basic CRUD functionality setup
draft
default
tip
2022-01-18, Cerras
00546d6fa774
Initial work to get basic CRUD functionality setup
# Copyright (C) 2022 Cerras
#
# This file is part of addons-site.
#
# addons-site is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# addons-site is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with addons-site. If not, see <http://www.gnu.org/licenses/>.
cat
plugins.json
|
jq
-c
'[ .[] | {"name":.heading, "description":.info, "type":.type, "icon": .logo, "sourceCode": .repo, "maintainer": (if has("maintainer") then .maintainer else "None" end)}]'
|
jq
-c
'[ .[] | with_entries( select( .value != null ) )]'
>
mappedPluggins.json