slim-bean / loki-shell

How to use Loki to store and centralize your shell history from anywhere and search it using ctrl-r and fzf
Apache License 2.0
83 stars 8 forks source link

Use console info strings for code block highlighting #5

Closed jdbaldry closed 3 years ago

jdbaldry commented 4 years ago

This is mostly personal preference but I think it is a notable improvement when you want to show the usage of a command and expected output as with the docker logs code block.

jdbaldry commented 4 years ago

Will understand if this is not wanted, especially as it trades off better highlighting for being able to copy-paste command snippets in some cases.

jdbaldry commented 3 years ago

Closing this as I'm doing PR house keeping but shout if you want a similar thing done for the updated article.md and I'll happily make the changes. Here's the visual comparison for your perusal:

bash

$ docker logs loki-shell
level=info ts=2020-08-23T13:06:21.1927609Z caller=loki.go:210 msg="Loki started"
level=info ts=2020-08-23T13:06:21.1929967Z caller=lifecycler.go:370 msg="auto-joining cluster after timeout" ring=ingester

console:

$ docker logs loki-shell
level=info ts=2020-08-23T13:06:21.1927609Z caller=loki.go:210 msg="Loki started"
level=info ts=2020-08-23T13:06:21.1929967Z caller=lifecycler.go:370 msg="auto-joining cluster after timeout" ring=ingester