Skip to content

Commit abe5f95

Browse files
authored
Update files.py (#602)
* Add a bit of documentation on `assume_present` in `file.line` operator
1 parent 44b938b commit abe5f95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyinfra/operations/files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def line(
174174
+ flags: list of flags to pass to sed when replacing/deleting
175175
+ backup: whether to backup the file (see below)
176176
+ interpolate_variables: whether to interpolate variables in ``replace``
177+
+ assume_present: whether to assume a matching line already exists in the file
177178
178179
Regex line matching:
179180
Unless line matches a line (starts with ^, ends $), pyinfra will wrap it such that

0 commit comments

Comments
 (0)