unzip

package
v0.1.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnzipCmd = &cobra.Command{
	Use:   "unzip",
	Short: "Unzip the files",
	Run: func(cmd *cobra.Command, args []string) {
		filename, _ := cmd.Flags().GetString("filename")
		filepath, _ := cmd.Flags().GetString("filepath")
		filepath = strings.ReplaceAll(filepath, "\\", "/")
		fullPath := fmt.Sprintf("%s/%s", filepath, filename)
		err := unzipFile(filepath, fullPath)
		if err != nil {
			log.Fatal(err)
		}
	},
}

unzipCmd represents the unzip command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL