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.
|
package env
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
"github.com/zeromicro/go-zero/tools/goctl/pkg/env"
|
|
)
|
|
|
|
func write(_ *cobra.Command, args []string) error {
|
|
if len(sliceVarWriteValue) > 0 {
|
|
return env.WriteEnv(sliceVarWriteValue)
|
|
}
|
|
fmt.Println(env.Print(args...))
|
|
return nil
|
|
}
|