Skip to content

Commit

Permalink
feat(plan): bind some environment variables to options (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Oct 4, 2024
1 parent 10d6eda commit 13b3b64
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkg/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,19 @@ $ tfcmt [<global options>] plan [-patch] [-skip-no-changes] -- terraform plan [<
Action: cmdPlan,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "patch",
Usage: "update an existing comment instead of creating a new comment. If there is no existing comment, a new comment is created.",
Name: "patch",
Usage: "update an existing comment instead of creating a new comment. If there is no existing comment, a new comment is created.",
EnvVars: []string{"TFCMT_PLAN_PATCH"},
},
&cli.BoolFlag{
Name: "skip-no-changes",
Usage: "If there is no change tfcmt updates a label but doesn't post a comment",
Name: "skip-no-changes",
Usage: "If there is no change tfcmt updates a label but doesn't post a comment",
EnvVars: []string{"TFCMT_SKIP_NO_CHANGES"},
},
&cli.BoolFlag{
Name: "ignore-warning",
Usage: "If skip-no-changes is enabled, comment is posted even if there is a warning. If skip-no-changes is disabled, warning is removed from the comment.",
Name: "ignore-warning",
Usage: "If skip-no-changes is enabled, comment is posted even if there is a warning. If skip-no-changes is disabled, warning is removed from the comment.",
EnvVars: []string{"TFCMT_IGNORE_WARNING"},
},
&cli.BoolFlag{
Name: "disable-label",
Expand Down

0 comments on commit 13b3b64

Please sign in to comment.