mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Indent is used both for encryption and decryption
Also the indent for YAML files is limited to 2..9 by the YAML library used. Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
committed by
Hidde Beydals
parent
7d618adbd8
commit
988c7bfc89
@@ -1192,6 +1192,11 @@ by configuring ``.sops.yaml`` with:
|
||||
yaml:
|
||||
indent: 2
|
||||
|
||||
.. note::
|
||||
|
||||
The YAML emitter used by sops only supports values between 2 and 9. If you specify 1,
|
||||
or 10 and larger, the indent will be 2.
|
||||
|
||||
YAML anchors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -706,7 +706,7 @@ func main() {
|
||||
},
|
||||
cli.IntFlag{
|
||||
Name: "indent",
|
||||
Usage: "the number of spaces to indent YAML or JSON encoded file for encryption",
|
||||
Usage: "the number of spaces to indent YAML or JSON encoded file",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "verbose",
|
||||
|
||||
Reference in New Issue
Block a user