File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1559,6 +1559,17 @@ The value must be formatted as json.
15591559
15601560 $ sops set ~/git/svc/sops/example.yaml '["an_array"][1]' '{"uid1":null,"uid2":1000,"uid3":["bob"]}'
15611561
1562+ You can also provide the value from a file or stdin:
1563+
1564+ .. code:: sh
1565+
1566+ # Provide the value from a file
1567+ $ echo '{"uid1":null,"uid2":1000,"uid3":["bob"]}' > /tmp/example-value
1568+ $ sops set ~/git/svc/sops/example.yaml --value-file '["an_array"][1]' /tmp/example-value
1569+
1570+ # Provide the value from stdin
1571+ $ echo '{"uid1":null,"uid2":1000,"uid3":["bob"]}' | sops set ~/git/svc/sops/example.yaml --value-stdin '["an_array"][1]'
1572+
15621573Unset a sub-part in a document tree
15631574~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15641575
You can’t perform that action at this time.
0 commit comments