// ExtractWrappers Extract the CLI wrappers to the specified directory
ExtractWrappers Extract the CLI wrappers to the specified directory
// ExtractWrappers Extract the CLI wrappers to the specified directory
func ExtractWrappers(path string) error {
	err := os.MkdirAll(path, os.ModePerm)
	if err == nil {
		wrappersReader, err := downloadWrappers()
		if err != nil {
			return err
		}
		defer wrappersReader.Close()
		data, err := ioutil.ReadAll(io.LimitReader(wrappersReader, maxCLISize))
		if err != nil {
			return err
		}
		dataReader := bytes.NewReader(data)
		return coreio.Unzip(dataReader, int64(len(data)), path)
	}
	return err
}
func ExtractWrappers ( path string ) error { err := os . MkdirAll ( path , os . ModePerm ) if err == nil { wrappersReader , err := downloadWrappers ( ) if err != nil { return err } defer wrappersReader . Close ( ) data , err := ioutil . ReadAll ( io . LimitReader ( wrappersReader , maxCLISize ) ) if err != nil { return err } dataReader := bytes . NewReader ( data ) return coreio . Unzip ( dataReader , int64 ( len ( data ) ) , path ) } return err }
ExtractWrappers Extract the CLI wrappers to the specified directory
ExtractWrappers Extract the CLI wrappers to the specified directory