sspks icon indicating copy to clipboard operation
sspks copied to clipboard

Catchup: Implement dummy debug package

Open jdel opened this issue 6 years ago • 5 comments

Implement a dummy debug package that will output debug information directly in the Syno UI as the package description.

Conditions to trigger that package to show:

  • In sspks.yml:
packages:
  debug: 1
  • Package has to be a beta so it is not shown to stable channel users.

Data that could be in the description: full HTTP request (headers, url, vars...)

jdel avatar Jul 11 '17 17:07 jdel

So, I have just done a test with this. It looks like the syno is stripping line breaks and encoding special characters.

I haven't managed to insert line breaks in the description field, which results in a pretty bad looking debug output in the package center.

I have tried both \n and <br /> with no success so far.

jdel avatar Jul 16 '17 14:07 jdel

Anyone interested, it has been implemented in gosspks. Still ugly but i can't do much better without line breaks.

You can see the debug package in your synology package center by adding my dev repo here: https://packages-dev.fkn.ninja/

jdel avatar Aug 15 '17 23:08 jdel

Unfortunately, I couldn't find any package with a line break from the entiere JSON output of the official syno repo (for my arch: cedarview) so I just gave up trying.

Pipes with lots of spaces are a good idea indeed. However, generating markdown code would be pretty useless because it cannot be copied and pasted. The package center doesn't allow you to select the description to copy it (at least on chrome).

jdel avatar Aug 16 '17 10:08 jdel

I will do some tests at some point, but I cannot insert non breaking spaces either.

Might need to have a look at using weird unicode characters ?

jdel avatar Aug 16 '17 13:08 jdel

Sorted, by simply using unicode line breaks ! https://github.com/jdel/gosspks/commit/accd9e1

I will try to port this to sspks when I have some time.

jdel avatar Aug 16 '17 14:08 jdel