andreazorzetto / yh Goto Github PK
View Code? Open in Web Editor NEWYAML syntax highlighter to bring colours to kubectl output
License: Apache License 2.0
YAML syntax highlighter to bring colours to kubectl output
License: Apache License 2.0
For the following .yaml
;
apiVersion: v1
data:
foo.conf: "consul-api:\n sync: \"true\"\nvault:\n sync: \"true\"\n consul-filter
: '(Service.Tags contains \"active\")'\netcd:\n sync: \"true\"\n consul-filter:
'(Service.Tags contains \"_cluster=baz\")'\netcd-node-exporter:\n"
kind: ConfigMap
metadata:
name: foo-services
namespace: bar
selfLink: /api/v1/namespaces/external/configmaps/foo-services
Returns panic:
$ cat foo.yml | yh
apiVersion: v1
data:
foo.conf: "consul-api:\n sync: \"true\"\nvault:\n sync: \"true\"\n consul-filter
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.main()
/Users/andreazorzetto/go/src/yh/main.go:59 +0x151a
Version:
$ yh version
0.2.1
Hi
bad link for windows version. Not found
Regards
Hi,
Is it possible to provide arm builds as part of the releases?
This is great, would like to see a Homebrew install, thanks.
Given the following test file:
test: passed
anotherTest: failed
The expected output should contain the empty line between the two keys. Bu the actual output is:
test: passed
anotherTest: failed
Which is not what I expect. Either remove empty lines or keep them where they should be.
If there are more empty lines, they all moved to the beginning of the output.
YH version: 0.4.0
It's a bit odd that comments don't have a different color. Oddly enough, the code is there to make it happen but it's not working
Lines 114 to 116 in df5758b
If there's any interest in accepting a patch for this, appreciate your replies on this issue.
Somehow I cant get the output of kustomize
get highlighted:
kustomize build k8s/kustomize/overlays/dev | yh
output: zsh: command not found: yh
but using with kubectl works: kubectl get all -o yaml | yh
output is colorized:
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
I am using BigSur MacOS
Thanks for this nice little utility. It would be great if we can use this as a kubectl plugin.
It would be great to make the color scheme configurable, so it's possible to use e.g. the same color scheme which vim
uses.
The alternative is to use vim directly, like: vim -c 'set syntax=yaml' -R -
.
windows download link is not available (not found)
It would be awesome to have the possibility to install this neat little tool via Brew.
I've never initiated a formulae for brew but if nobody else would do, I would see what I can do!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.