Skip to content

console #

fn export_man_pages #

pub fn export_man_pages(cmd cli.Command, path string) !

export_man_pages recursively generates all man pages for the given cli.Command & writes them to the given directory.

fn pretty_table #

pub fn pretty_table(header []string, data [][]string) !string

pretty_table converts a list of string data into a pretty table. Many thanks to @hungrybluedev in the Vlang Discord for providing this code! https://ptb.discord.com/channels/592103645835821068/592106336838352923/970278787143045192

fn tabbed_table #

pub fn tabbed_table(data [][]string) string

tabbed_table returns a simple textual table, with tabs as separators.