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.
Click to show internal directories.
Click to hide internal directories.