We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b797304 commit d9be059Copy full SHA for d9be059
1 file changed
README.rst
@@ -1560,6 +1560,17 @@ The value must be formatted as json.
1560
1561
$ sops set ~/git/svc/sops/example.yaml '["an_array"][1]' '{"uid1":null,"uid2":1000,"uid3":["bob"]}'
1562
1563
+You can also provide the value from a file or stdin:
1564
+
1565
+.. code:: sh
1566
1567
+ # Provide the value from a file
1568
+ $ echo '{"uid1":null,"uid2":1000,"uid3":["bob"]}' > /tmp/example-value
1569
+ $ sops set ~/git/svc/sops/example.yaml --value-file '["an_array"][1]' /tmp/example-value
1570
1571
+ # Provide the value from stdin
1572
+ $ echo '{"uid1":null,"uid2":1000,"uid3":["bob"]}' | sops set ~/git/svc/sops/example.yaml --value-stdin '["an_array"][1]'
1573
1574
Unset a sub-part in a document tree
1575
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1576
0 commit comments