You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
272 B
Go
18 lines
272 B
Go
3 years ago
|
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
|
||
|
}
|