From d399f0bb18dfed437c89cae7463dd008a8cb8efb Mon Sep 17 00:00:00 2001 From: cracyc Date: Wed, 14 Mar 2018 17:13:59 -0500 Subject: plugins/portname: describe revised format --- plugins/portname/init.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/plugins/portname/init.lua b/plugins/portname/init.lua index f90978a34ee..23e9f904f15 100644 --- a/plugins/portname/init.lua +++ b/plugins/portname/init.lua @@ -1,9 +1,19 @@ -- license:BSD-3-Clause -- copyright-holders:Carl --- use plugin options to save the input port list to a gettext formatted file --- the file is saved in the ctrlrpath dir --- use #import to load names from a different file --- use #set ,,... to override names for a child set, common names should be listed at the top before any #set tags +-- data files are json files named .json +-- { +-- "ports":{ +-- "":{ +-- "labels":{ +-- "player":, +-- "name":"" +-- },{ +-- ... +-- } +-- } +-- } +-- any additional metadata can be included for other usage +-- and will be ignored local exports = {} exports.name = "portname" exports.version = "0.0.1" -- cgit v1.2.3