This commit is contained in:
Dev
2025-09-13 02:47:20 +03:00
commit 67b170415b
16 changed files with 2187 additions and 0 deletions

31
cmd/root.go Normal file
View File

@@ -0,0 +1,31 @@
package cmd
import (
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "fastestmirror",
Short: "Find and set the fastest package mirror for your Linux distribution",
Long: `FastestMirror - Because waiting for slow mirrors is like watching paint dry in a hurricane.
This tool automatically detects your Linux distribution and finds the fastest
package repository mirrors available. No more suffering through downloads that
move slower than continental drift.
Features:
• Automatic distribution detection
• Concurrent mirror speed testing
• Colorful output that doesn't hurt your eyes
• Backup and restore functionality
• Works with major distros (Debian, Ubuntu, Arch, Fedora, etc.)`,
}
// Execute runs the root command
func Execute() error {
return rootCmd.Execute()
}
func init() {
// Global flags and configuration initialization
}