mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-30 06:01:58 +05:30
24 lines
379 B
Go
24 lines
379 B
Go
package cmd
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "mozhi",
|
|
Short: "An alternative front-end for many Translation Engines.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
cmd.Help()
|
|
},
|
|
}
|
|
|
|
func Execute() {
|
|
if err := rootCmd.Execute(); err != nil {
|
|
log.Println(os.Stderr, "Error running CLI: %v", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|