zerkalo/cmd/root.go

28 lines
638 B
Go
Raw Normal View History

package cmd
import (
"github.com/spf13/cobra"
)
var (
// Used for flags.
storagePath string
rootCmd = &cobra.Command{
Use: "zerkalo",
Short: "Efficiently mirror Linux distribution repositories",
Long: `zerkalo is a CLI program that allows its users to mirror.
Linux distribution repositories such as apt, or yum. It lets users easily
snapshot repositories per day and deduplicates as much content as it can.`,
}
)
// Execute executes the root command.
func Execute() error {
return rootCmd.Execute()
}
func init() {
rootCmd.PersistentFlags().StringVarP(&storagePath, "storage-path", "p", "", "zerkalo storage path")
}