From 94bb13ae885f75c81567ad4097ea529861f3fb24 Mon Sep 17 00:00:00 2001 From: Grigorii Safronov Date: Sun, 25 Feb 2024 20:33:47 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'cmd/rqlite/main.go'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/rqlite/main.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cmd/rqlite/main.go b/cmd/rqlite/main.go index 9e96bb29..418f95d8 100644 --- a/cmd/rqlite/main.go +++ b/cmd/rqlite/main.go @@ -103,14 +103,17 @@ func main() { ctx.String("%s %v\n", ctx.Color().Red("ERR!"), msg) return nil } - - fmt.Println("Welcome to the rqlite CLI.") - fmt.Printf("Enter \".help\" for usage hints.\n") - fmt.Printf("Connected to %s running version %s\n", connectionStr, version) + + fmt.Printf("\n") + fmt.Println("Welcome to the fluidB CLI. Enter \".help\" for usage hints.") + fmt.Printf("Version %s, commit %s, branch %s\n", cmd.Version, cmd.Commit, cmd.Branch) + fmt.Printf("Connected to rqlited version %s\n", version) + fmt.Printf("\n") timer := false consistency := "weak" - prefix := fmt.Sprintf("%s>", address6(argv)) + //prefix := fmt.Sprintf("%s>", address6(argv)) + prefix := fmt.Sprintf("fluidB~:>") term, err := prompt.NewTerminal() if err != nil { ctx.String("%s %v\n", ctx.Color().Red("ERR!"), err) @@ -680,4 +683,4 @@ func createHostList(argv *argT) []string { // which is compatible with IPv6 addresses. func address6(argv *argT) string { return net.JoinHostPort(argv.Host, fmt.Sprintf("%d", argv.Port)) -} +} \ No newline at end of file