32 lines
880 B
Go
32 lines
880 B
Go
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
|
|
}
|