(Fix): Removed unneccessary comments that my copilot generated.

This commit is contained in:
2025-11-22 10:17:28 +00:00
parent 8081085f87
commit 3caca0dfcb
8 changed files with 3 additions and 46 deletions

View File

@@ -21,7 +21,6 @@ func RunCompressFlow() error {
var verify bool
var compressionLevel string
// Get current working directory
cwd, _ := os.Getwd()
form := huh.NewForm(
@@ -124,14 +123,11 @@ func RunCompressFlow() error {
}
}
// Auto-generate output path if not provided
if outputPath == "" {
sourceName := filepath.Base(sourcePath)
// Remove trailing slashes
sourceName = strings.TrimSuffix(sourceName, string(filepath.Separator))
// Determine file extension based on archive type
var extension string
switch models.ArchiveType(archiveTypeStr) {
case models.ZIP:
@@ -146,7 +142,6 @@ func RunCompressFlow() error {
extension = ".zip"
}
// Create output path in current working directory
outputPath = filepath.Join(cwd, sourceName+extension)
fmt.Println(InfoStyle.Render(fmt.Sprintf("📝 Auto-generated output: %s", outputPath)))