mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
18 lines
272 B
Go
18 lines
272 B
Go
package env
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/urfave/cli"
|
|
"github.com/zeromicro/go-zero/tools/goctl/pkg/env"
|
|
)
|
|
|
|
func Action(c *cli.Context) error {
|
|
write := c.StringSlice("write")
|
|
if len(write) > 0 {
|
|
return env.WriteEnv(write)
|
|
}
|
|
fmt.Println(env.Print())
|
|
return nil
|
|
}
|