# Functions
BackupDBFile creates a backup of current db file in the same dataDir location.
CheckDataDir checks if data_directory is present in the viper configuration file and that it exists in the filesystem, otherwise it returns an error.
CheckDBFile checks if db_filename is present in the viper configuration file and that it exists in the filesystem, otherwise it returns an error.
CleanupDBBackupFiles deletes DB backup files older than 5 days.
ColorizeBlue returns a given string that is formatted in blue color.
ColorizeGreen returns a given string that is formatted in green color.
ColorizeRed returns a given string that is formatted in red color.
ColorizeYellow returns a given string that is formatted in yellow color.
Completer returns matched suggestions from the list of options as the input is typed.
CreateLedgerTables creates required tables for a ledger
It adds an entry in the ledgers table It creates the below tables with ledger name prefixed
for example if name = uk - uk_accounts - uk_categories - uk_transactions - uk_split_transactions.
FormatAccountsTableTitle formats the title depending on the value of account balance.
GetCashioDBPath reads viper config and returns the absolute path to the cashio sqlite database file as string.
GetCurrencyNames iterates through CurrencySymbols map and returns a slice of strings that contains the currency names.
GetDateFromUser prompts the user for date input.
InitializeCashio creates ledgers table in the cashio sqlite database.
No description provided by the author
PadLeft returns the text with padCount number of spaces prefixed to it.
PrecisionRoundAFloat returns the given float rounded to the precision number of places.
ProcessExpression returns the value of an arithmetic expression
Example: input of "3+4" will return 7.00.
RestoreTermState restores a previously saved terminal state.
SaveTermState saves the current terminal state which can then be restored if needed.
SliceContains returns true if the slice contains given string otherwise false.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
A map of currency names to symbols.
No description provided by the author
A map of currencies to locales.