mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 21:02:04 +03:00
drop the ansi command, make the ui command use ansi if vty is not available
This commit is contained in:
parent
d7d08354ae
commit
2b803b4558
@ -31,9 +31,8 @@ usagehdr = printf (
|
||||
" register - show register transactions\n" ++
|
||||
#ifdef VTY
|
||||
" ui - run a simple curses-based text ui\n" ++
|
||||
#endif
|
||||
#ifdef ANSI
|
||||
" ansi - run a simple ansi-based text ui\n" ++
|
||||
#elif ANSI
|
||||
" ui - run a simple ansi-based text ui\n" ++
|
||||
#endif
|
||||
#ifdef HAPPS
|
||||
" web - run a simple web ui\n" ++
|
||||
|
@ -39,8 +39,7 @@ versionmsg = progname ++ " " ++ versionstr ++ configmsg ++ "\n"
|
||||
configflags = tail [""
|
||||
#ifdef VTY
|
||||
,"vty"
|
||||
#endif
|
||||
#ifdef ANSI
|
||||
#elif ANSI
|
||||
,"ansi"
|
||||
#endif
|
||||
#ifdef HAPPS
|
||||
|
@ -60,8 +60,7 @@ import PrintCommand
|
||||
import RegisterCommand
|
||||
#ifdef VTY
|
||||
import UICommand
|
||||
#endif
|
||||
#ifdef ANSI
|
||||
#elif ANSI
|
||||
import ANSICommand
|
||||
#endif
|
||||
#ifdef HAPPS
|
||||
@ -82,9 +81,8 @@ main = do
|
||||
| cmd `isPrefixOf` "register" = parseLedgerAndDo opts args register
|
||||
#ifdef VTY
|
||||
| cmd `isPrefixOf` "ui" = parseLedgerAndDo opts args ui
|
||||
#endif
|
||||
#ifdef ANSI
|
||||
| cmd `isPrefixOf` "ansi" = parseLedgerAndDo opts args ansi
|
||||
#elif ANSI
|
||||
| cmd `isPrefixOf` "ui" = parseLedgerAndDo opts args ansi
|
||||
#endif
|
||||
#ifdef HAPPS
|
||||
| cmd `isPrefixOf` "web" = parseLedgerAndDo opts args web
|
||||
|
Loading…
Reference in New Issue
Block a user