github.com/sdqri/sequined@v0.0.0-20240421190656-fc6bf956f4d8/cmd/sequined-cli/commands/root.go (about) 1 package commands 2 3 import ( 4 "os" 5 6 "github.com/spf13/cobra" 7 ) 8 9 var rootCmd = &cobra.Command{ 10 Use: "sequined", 11 Short: "A website mocking tool to test your spider's performance against dynamic and realistic environments", 12 Long: "Sequined is a website mocking tool that aims to aid in exploring synchronization problems in crawlers. " + 13 "By simulating changes in website structure and data patterns, it helps you measure the freshness and age of web data, " + 14 "facilitating the refinement of data refreshing methods and meeting performance requirements.", 15 } 16 17 func Execute() { 18 err := rootCmd.Execute() 19 if err != nil { 20 os.Exit(1) 21 } 22 } 23 24 func init() { 25 rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") 26 }