Skip to content

Commit

Permalink
Move Function
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Jan 14, 2025
1 parent e75af47 commit 92b72c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
16 changes: 1 addition & 15 deletions source/command/user_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,7 @@ func UserInput() {
case "exit":
os.Exit(0)
case "help":
fmt.Println("Hyaena Technologies: Data Interchange Server")
fmt.Println("")
fmt.Println("")
fmt.Println("Commands: Description:")
fmt.Println("")
fmt.Println("exit Exit Server")
fmt.Println("help Print List of Commands and Flags")
fmt.Println("serve Serve Web Applcation")
fmt.Println("version Print Version Number")
fmt.Println("")
fmt.Println("")
fmt.Println("Flags: Description:")
fmt.Println("")
fmt.Println("--help, --h, -h Print List of Commands and Flags")
fmt.Println("--version, --v, -v Print Version Number")
utility.PrintHelp()
case "serve":
network.ServeWebApplication()
case "version":
Expand Down
24 changes: 24 additions & 0 deletions source/utility/print_help.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package utility

import (
"fmt"
)

// Print Help Command Output
func PrintHelp() {
fmt.Println("Hyaena Technologies: Data Interchange Server")
fmt.Println("")
fmt.Println("")
fmt.Println("Commands: Description:")
fmt.Println("")
fmt.Println("exit Exit Server")
fmt.Println("help Print List of Commands and Flags")
fmt.Println("serve Serve Web Applcation")
fmt.Println("version Print Version Number")
fmt.Println("")
fmt.Println("")
fmt.Println("Flags: Description:")
fmt.Println("")
fmt.Println("--help, --h, -h Print List of Commands and Flags")
fmt.Println("--version, --v, -v Print Version Number")
}

0 comments on commit 92b72c9

Please sign in to comment.