Update comments and dependencies

This commit is contained in:
raul 2024-04-23 07:58:54 +02:00
parent c4302aea1a
commit a0b0332cd4
2 changed files with 6 additions and 10 deletions

View File

@ -5,21 +5,16 @@ Copyright © 2024 Raul <raul@bulgariu.xyz>
package cmd package cmd
import ( import (
"os"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os"
) )
// rootCmd represents the base command when called without any subcommands // rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "chat-tests", Use: "tiny-chat",
Short: "A brief description of your application", Short: "Application for hosting and joining a simple chat server",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications. Long: `Application for hosting and joining a simple chat server`,
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
// Uncomment the following line if your bare application // Uncomment the following line if your bare application
// has an action associated with it: // has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { }, // Run: func(cmd *cobra.Command, args []string) { },

View File

@ -2,8 +2,9 @@ module chat-tests
go 1.22.2 go 1.22.2
require github.com/spf13/cobra v1.8.0
require ( require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.5 // indirect
) )