mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
SimplyTranslate -> Mozhi + Refactor README
This commit is contained in:
@@ -3,7 +3,7 @@ package cmd
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"codeberg.org/aryak/simplytranslate/serve"
|
||||
"codeberg.org/aryak/mozhi/serve"
|
||||
)
|
||||
|
||||
var port string = "3000"
|
||||
@@ -20,7 +20,7 @@ var serveCmd = &cobra.Command{
|
||||
func init() {
|
||||
rootCmd.AddCommand(serveCmd)
|
||||
|
||||
serveCmd.Flags().StringVarP(&port, "port", "p", "", "The port SimplyTranslate will listen to. Defaults to 3000, and overrides the SIMPLYTRANSLATE_PORT environment variable.")
|
||||
serveCmd.Flags().StringVarP(&port, "port", "p", "", "The port Mozhi will listen to. Defaults to 3000, and overrides the MOZHI_PORT environment variable.")
|
||||
|
||||
// set port variable to the value of the port flag
|
||||
port = serveCmd.Flag("port").Value.String()
|
||||
|
Reference in New Issue
Block a user