Skip to content

Info

Extensions

$ ./enola info extensions
.html: text/html; charset=utf-8
.json: application/json; charset=utf-8
.css: text/css; charset=utf-8
.js: application/javascript; charset=utf-8
.yaml: application/yaml; charset=utf-8
.yml: application/yaml; charset=utf-8
.proto: text/proto; charset=utf-8
.proto.binpb: application/protobuf; proto-message=google.protobuf.FileDescriptorSet
.binpb: application/protobuf
.pb: application/protobuf
.textproto: text/protobuf; charset=utf-8
.txtpb: text/protobuf; charset=utf-8
.yamlld: application/ld+yaml; charset=utf-8
.ttl: text/turtle; charset=utf-8
.jsonld: application/ld+json; charset=utf-8
.thing.txtpb: text/protobuf; charset=utf-8; proto-message=dev.enola.thing.Thing
.thing.binpb: application/protobuf; proto-message=dev.enola.thing.Thing
.thing.json: text/enola.dev#thing+json; charset=utf-8
.thing.yaml: text/enola.dev#thing+yaml; charset=utf-8
.thing.html: text/enola.dev#thing+html; charset=utf-8

Detect

$ ./enola info detect --http-scheme https://www.google.com
text/html; charset=utf-8

or:

$ ./enola info detect --file-scheme file:picasso.thing.yaml
application/yaml; charset=utf-8

Note that this file does not exist, this is fine; the type of its content is determine by the extension (in this case).

Screencast

Demo