func (c *prestopCmd) InitFlag(setter tinycli.EnvFlagSetter) {
	setter.SetDuration("TARS_PRESTOP_WAITTIME", &c.waitStopTime, "80s", "Wait time before stop")
}
InitFlag initializes options from environment variables
package prestop
import (
	"context"
	"io/ioutil"
	"os"
	"path/filepath"
	"time"
	"github.com/TarsCloud/TarsGo/tars"
	"github.com/TarsCloud/TarsGo/tars/protocol/res/adminf"
	"github.com/tarscloud/k8stars/app/genconf"
	"github.com/tarscloud/k8stars/consts"
	"github.com/tarscloud/k8stars/logger"
	"github.com/tarscloud/k8stars/tarsproxy"
	Tars "github.com/tarscloud/k8stars/tarsregistry/autogen/tars"
	"github.com/tarscloud/k8stars/tinycli"
)
var (
	log = logger.GetLogger()
)
type prestopCmd struct {
	waitStopTime time.Duration
}
func NewCmd() tinycli.Cmd {
	return &prestopCmd{}
}