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
feat: colorize field managers in blame output (#44)
Each unique field manager gets a distinct, deterministic ANSI color
based on an FNV hash of its name, making it easier to visually
distinguish managers when there are many. Adds a --color flag
(auto|always|never, default auto) that auto-detects TTY.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
|`--time`|`relative`| Time format. One of: `full`, `relative`, `none`. |
61
+
|`--color`|`auto`| Color output. One of: `auto`, `always`, `never`. |
61
62
|`--filename`, `-f`|| Filename identifying the resource to get from a server. |
62
63
|`--input`, `-i`|`auto`| Read object from the given file. When set to `auto`, automatically read from stdin if piped. Use `-` to force reading from stdin. |
flags.StringVar(&o.timeFormat, "time", TimeFormatRelative, "Time format. One of: full|relative|none.")
83
+
flags.StringVar(&o.colorMode, "color", "auto", "Color output. One of: auto|always|never.")
81
84
flags.StringSliceVarP(&o.fileNameOpts.Filenames, "filename", "f", o.fileNameOpts.Filenames, "Filename identifying the resource to get from a server.")
82
85
flags.StringVarP(&o.inputFile, "input", "i", "auto", "Read object from the given file. When set to 'auto', automatically read from stdin if piped. Use '-' to force reading from stdin.")
83
86
returncmd
@@ -174,9 +177,24 @@ func (o *Options) visitClusterObjects(visit func(object metav1.Object) error) er
0 commit comments