openconfig / gnmic

gNMIc is a gNMI CLI client and collector
https://gnmic.openconfig.net
Apache License 2.0
190 stars 57 forks source link

FR: Support stdin as input file #146

Closed jbemmel closed 1 year ago

jbemmel commented 1 year ago

For use in Unix pipelines:

<some command that generates YAML> | gnmic set --replace-path /configure/router[router-name=Base] --stdin yaml

We can discuss about the syntax; other tools use '-' as filename for stdin, the format could be auto-detected as well

karimra commented 1 year ago

The '-' syntax should be supported now. Did it fail for you?

jbemmel commented 1 year ago

I could not find it in the documentation, I did not try

karimra commented 1 year ago

We had this same conversation a couple of years ago: https://github.com/karimra/gnmic/issues/369