mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
5383e29ce6
* Replace cli * Replace cli * Replace cli * Format code * Add compare case * Add compare case * Add compare case * Support go style flag * Support go style flag * Add test case
17 lines
279 B
Go
17 lines
279 B
Go
package env
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
"github.com/zeromicro/go-zero/tools/goctl/pkg/env"
|
|
)
|
|
|
|
func write(_ *cobra.Command, _ []string) error {
|
|
if len(sliceVarWriteValue) > 0 {
|
|
return env.WriteEnv(sliceVarWriteValue)
|
|
}
|
|
fmt.Println(env.Print())
|
|
return nil
|
|
}
|