Skip to content

Commit 9a336b2

Browse files
tsipinakisJanos Bonic
authored andcommitted
Document write-file
1 parent 212aa30 commit 9a336b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

USAGE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Currently, the agent has the following modes:
1919
`wait-signal`
2020
: Waits for a specific signal or signals before it exits.
2121

22+
`write-file`
23+
: Write standard input into the given file
24+
2225
`license`
2326
: This mode will print the license of the agent and exit.
2427

@@ -58,6 +61,13 @@ the value of `\0` or a newline (`\n`) is received on `stdin`. This byte will
5861
not be passed to the program and if any other byte is received the agent
5962
will exit to prevent data stream corruption.
6063

64+
## Writing files
65+
66+
The backend APIs do not support adding custom files on the fly in containers.
67+
So the `write-file` mode was created. The mode takes just one argument, the
68+
name and path of the file to write. The contents of the file will be read from
69+
standard input
70+
6171
## Reporting PID
6272

6373
Since most container implementations don't report the PID of the process

0 commit comments

Comments
 (0)