You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`--color` | `auto` | Force set color output. 'auto': colorize if tty attached, 'always': always colorize, 'never': never colorize.
40
40
`--completion` | | Output stern command-line completion code for the specified shell. Can be 'bash', 'zsh' or 'fish'.
41
+
`--compose` | `[]` | Compose project name to match (regular expression)
41
42
`--compose-colors` | | Specifies the colors used to highlight container names. Provide colors as a comma-separated list using SGR (Select Graphic Rendition) sequences, e.g., "91,92,93,94,95,96".
42
43
`--config` | `~/.config/tailfin/config.yaml` | Path to the tailfin config file
43
44
`--container-colors` | | Specifies the colors used to highlight compose project names. Use the same format as --container-colors. Defaults to the values of --container-colors if omitted, and must match its length.
@@ -171,12 +172,12 @@ Tail all logs
171
172
```
172
173
tailfin .
173
174
```
174
-
<!--
175
-
*TODO* Tail the `test` compose project without printing any prior logs
175
+
176
+
Tail the `test` compose project without printing any prior logs
176
177
```
177
-
tailfin . -c test --tail 0
178
+
tailfin . --compose test --tail 0
178
179
```
179
-
-->
180
+
180
181
Tail everything excluding logs from `backend` container
fs.StringVar(&o.color, "color", o.color, "Force set color output. 'auto': colorize if tty attached, 'always': always colorize, 'never': never colorize.")
327
334
fs.StringVar(&o.completion, "completion", o.completion, "Output stern command-line completion code for the specified shell. Can be 'bash', 'zsh' or 'fish'.")
335
+
fs.StringArrayVar(&o.compose, "compose", o.compose, "Compose project name to match (regular expression)")
328
336
fs.StringArrayVarP(&o.exclude, "exclude", "e", o.exclude, "Log lines to exclude. (regular expression)")
329
337
fs.StringArrayVarP(&o.excludeContainer, "exclude-container", "E", o.excludeContainer, "Container name to exclude. (regular expression)")
330
338
fs.BoolVar(&o.noFollow, "no-follow", o.noFollow, "Exit when all logs have been shown.")
@@ -347,7 +355,6 @@ func (o *options) AddFlags(fs *pflag.FlagSet) {
347
355
fs.StringSliceVar(&o.containerColors, "compose-colors", o.containerColors, "Specifies the colors used to highlight container names. Provide colors as a comma-separated list using SGR (Select Graphic Rendition) sequences, e.g., \"91,92,93,94,95,96\".")
348
356
fs.StringSliceVar(&o.composeColors, "container-colors", o.composeColors, "Specifies the colors used to highlight compose project names. Use the same format as --container-colors. Defaults to the values of --container-colors if omitted, and must match its length.")
349
357
// TODO: --context for docker context? Seems to be a `docker` thing, not a dockerd thing.
350
-
// TODO: --compose/-c to limit to a compose project
351
358
// TODO: --ignore-compose to make it unaware of compose (e.g. use full container name)
0 commit comments