docker icon indicating copy to clipboard operation
docker copied to clipboard

defining custom tags

Open shakty opened this issue 11 years ago • 2 comments

Hi, this issue is about a feature request. Dunno if u r interested in implemented, or if it is feasible at all with the current codebase.

I would like to define custom tags. In fact, some of my functions are emitting events, and I would like to have a tag @emit where I list all the events that can be generated by the function.

I am pretty sure this would be an important feature, and I would not be the only one interested.

Thanks for the great software!

shakty avatar Feb 25 '13 12:02 shakty

Interesting suggestion - not entirely sure how feasible this would be because you'd have to define exactly how the tag gets matched (e.g. does it have a type parameter, a name, a description?). Might be possible as a feature to expose when using docker as a node module, rather than the command line.

I'll have a think, see what I can come up with. Meanwhile if anyone has any suggestions for how they'd like this feature to work from a usage standpoint, feel free to discuss.

jbt avatar Feb 28 '13 20:02 jbt

hi, sorry for the delay in coming back here, I have been travelling the past two weeks.

Basically, I don't know how exactly how you parse the tags, but I imagine that we could have an external configuration file where the extra tags are added with all the necessary options. Other options could (should?) be specified there too. Then, I could pass the path to the file as a parameter in the command line, or require it when using Docker from Node.

Cheers

shakty avatar Mar 18 '13 09:03 shakty