New 🌊 wave for @helm

Commit 4ad200ad

4ad200adf507Merged

zhilyaev <[email protected]> · 5 years ago · 11 files · +4 added · ~2 modified · -5 deleted

Description

return fix log formatter

Details

Commit
4ad200adf507
Parent
67287534a009

cmd/helmwave/flags_log.godeleted

1-package main
2-
3-import "github.com/urfave/cli/v2"
4-
5-func flagsLog() []cli.Flag {
6- return []cli.Flag{
7- &cli.StringFlag{
8- Name: "log-format",
9- Usage: "You can set: [ text | json | pad | emoji ]",
10- Value: "emoji",
11- EnvVars: []string{"HELMWAVE_LOG_FORMAT"},
12- Destination: &app.Logger.Format,
13- },
14- &cli.StringFlag{
15- Name: "log-level",
16- Usage: "You can set: [ debug | info | warn | fatal | panic | trace ]",
17- Value: "info",
18- EnvVars: []string{"HELMWAVE_LOG_LEVEL", "HELMWAVE_LOG_LVL"},
19- Destination: &app.Logger.Level,
20- },
21- &cli.BoolFlag{
22- Name: "log-color",
23- Usage: "Force color",
24- Value: true,
25- EnvVars: []string{"HELMWAVE_LOG_COLOR"},
26- Destination: &app.Logger.Color,
27- },
28- &cli.IntFlag{
29- Name: "kubedog-log-width",
30- Usage: "Set kubedog max log line width",
31- Value: 140,
32- EnvVars: []string{"HELMWAVE_KUBEDOG_LOG_WIDTH"},
33- Destination: &app.Logger.Width,
34- },
35- }
36-}