We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50cb029 commit 599cae3Copy full SHA for 599cae3
main.go
@@ -48,6 +48,13 @@ func main() {
48
Name: "sync",
49
Aliases: []string{"s"},
50
Usage: "Sync a repo right now",
51
+ Flags: []cli.Flag{
52
+ &cli.StringSliceFlag{
53
+ Name: "env",
54
+ Aliases: []string{"e"},
55
+ Usage: "Env variables to pass",
56
+ },
57
58
Action: func(ctx *cli.Context) error {
59
repoPath, err := os.Getwd()
60
if err != nil {
@@ -64,6 +71,10 @@ func main() {
64
71
return tracerr.Wrap(err)
65
72
}
66
73
74
+ for _, e := range ctx.StringSlice("env") {
75
+ cfg.Env = append(cfg.Env, e)
76
+ }
77
+
67
78
err = common.AutoSync(cfg)
68
79
69
80
0 commit comments