public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Re: hjson file format
Date: Wed, 13 Mar 2024 20:45:32 +0300	[thread overview]
Message-ID: <ZfHmPJ3CtAqlpVhT@stargrave.org> (raw)
In-Reply-To: <ff3d932d-8816-4289-8cdd-df66d78f50a8@danisch.de>

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

*** Hadmut Danisch [2024-03-13 19:34]:
>Which still leaves the question open: What is the intended clean way
>(without workarounds) to distribute the list of neighbors and their public
>keys, while on the same time keeping the secrets local on the machine,  if
>they are both in the same file, but there is no tool to selectively modify
>parts of the file.

Convert that file to directory with nncp-cfgdir and do whatever
modifications you wish with ordinary subdirectories/files. Or convert
Hjson to JSON and modify it with JSON-aware utilities, if they are
appropriate for that task (personally I used only gojq and gjo and not
sure they are convenient enough).

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2024-03-13 17:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 22:53 hjson file format Hadmut Danisch
2024-03-13  6:31 ` Sergey Matveev
2024-03-13 17:34   ` Hadmut Danisch
2024-03-13 17:45     ` Sergey Matveev [this message]
2024-03-13 17:39   ` Sergey Matveev
2024-03-13 21:54     ` Emery Hemingway