Skip to content

Commit

Permalink
refactor(cli) variable for asterisk lines in shell.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedrok committed Aug 5, 2024
1 parent 222d4c0 commit 7749d6a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CLI/controllers/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ type ShellState struct {
DryRunErrors []error
}

const asteriskLine = "********************************************"

func Clear() {
switch runtime.GOOS {
case "windows":
Expand Down Expand Up @@ -213,9 +215,9 @@ func SetEnv(arg string, val interface{}) {
}

func LSOG() error {
fmt.Println("********************************************")
fmt.Println(asteriskLine)
fmt.Println("OGREE Shell Information")
fmt.Println("********************************************")
fmt.Println(asteriskLine)

fmt.Println("USER EMAIL:", State.User.Email)
fmt.Println("API URL:", State.APIURL+"/api/")
Expand All @@ -231,9 +233,9 @@ func LSOG() error {
fmt.Println("DEBUG LEVEL: ", State.DebugLvl)

fmt.Printf("\n\n")
fmt.Println("********************************************")
fmt.Println(asteriskLine)
fmt.Println("API Information")
fmt.Println("********************************************")
fmt.Println(asteriskLine)

//Get API Information here
resp, err := API.Request("GET", "/api/version", nil, http.StatusOK)
Expand Down

0 comments on commit 7749d6a

Please sign in to comment.