Documentation ¶
Index ¶
Constants ¶
View Source
const ( Reset Color = "\x1b[0000m" Bright = "\x1b[0001m" BlackText = "\x1b[0030m" RedText = "\x1b[0031m" GreenText = "\x1b[0032m" YellowText = "\x1b[0033m" BlueText = "\x1b[0034m" MagentaText = "\x1b[0035m" CyanText = "\x1b[0036m" WhiteText = "\x1b[0037m" DefaultText = "\x1b[0039m" BrightRedText = "\x1b[1;31m" BrightGreenText = "\x1b[1;32m" BrightYellowText = "\x1b[1;33m" BrightBlueText = "\x1b[1;34m" BrightMagentaText = "\x1b[1;35m" BrightCyanText = "\x1b[1;36m" BrightWhiteText = "\x1b[1;37m" BlackBackground = "\x1b[0040m" RedBackground = "\x1b[0041m" GreenBackground = "\x1b[0042m" YellowBackground = "\x1b[0043m" BlueBackground = "\x1b[0044m" MagentaBackground = "\x1b[0045m" CyanBackground = "\x1b[0046m" WhiteBackground = "\x1b[0047m" BrightBlackBackground = "\x1b[0100m" BrightRedBackground = "\x1b[0101m" BrightGreenBackground = "\x1b[0102m" BrightYellowBackground = "\x1b[0103m" BrightBlueBackground = "\x1b[0104m" BrightMagentaBackground = "\x1b[0105m" BrightCyanBackground = "\x1b[0106m" BrightWhiteBackground = "\x1b[0107m" )
Color codes interpretted by the terminal NOTE: all codes must be of the same length or they will throw off the field alignment of tabwriter
View Source
const DATE_FORMAT = "2006-01-02 15:04:05"
Variables ¶
View Source
var App = grumble.New(&grumble.Config{ Name: "Teletrada", Description: "Crypto trading bot", HistoryFile: "/tmp/teletrada.hist", Prompt: "teletrada » ", PromptColor: color.New(color.FgGreen, color.Bold), HelpHeadlineColor: color.New(color.FgGreen), HelpHeadlineUnderline: true, HelpSubCommands: true, Flags: func(f *grumble.Flags) { f.Bool("v", "verbose", false, "enable verbose mode") f.String("a", "address", defaultAddress, "address to connect to client") }, })
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.