From f8bac14df3a93a7eaef1d9fe065153225161acaf Mon Sep 17 00:00:00 2001 From: "Rene Vergara A." Date: Tue, 11 Jun 2024 19:34:40 -0400 Subject: [PATCH] rvv041 - Change Zenith start parameter from CLI to TUI --- app/Main.hs | 4 ++-- src/Zenith/CLI.hs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index 5911cfc..269ec1b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -220,7 +220,7 @@ main = do " ______ _ _ _ \n |___ / (_) | | | \n / / ___ _ __ _| |_| |__ \n / / / _ \\ '_ \\| | __| '_ \\ \n / /_| __/ | | | | |_| | | |\n /_____\\___|_| |_|_|\\__|_| |_|\n Zcash Full Node CLI v0.4.0" } (root nodeUser nodePwd) - "cli" -> runZenithCLI myConfig + "tui" -> runZenithTUI myConfig "rescan" -> clearSync myConfig _ -> printUsage else printUsage @@ -230,5 +230,5 @@ printUsage = do putStrLn "zenith [command] [parameters]\n" putStrLn "Available commands:" putStrLn "legacy\tLegacy CLI for zcashd" - putStrLn "cli\tCLI for zebrad" + putStrLn "tui\tTUI for zebrad" putStrLn "rescan\tRescan the existing wallet(s)" diff --git a/src/Zenith/CLI.hs b/src/Zenith/CLI.hs index 8ecd3d0..f107dfd 100644 --- a/src/Zenith/CLI.hs +++ b/src/Zenith/CLI.hs @@ -1288,8 +1288,8 @@ theApp = , M.appAttrMap = const theMap } -runZenithCLI :: Config -> IO () -runZenithCLI config = do +runZenithTUI :: Config -> IO () +runZenithTUI config = do let host = c_zebraHost config let port = c_zebraPort config let dbFilePath = c_dbPath config -- 2.34.1