~otheb/kb

8399004e8ea7e10fd6e9c023d3df11d90045678f — Olie Ayre 8 months ago 68e0e4f
Added tag information to entry formatting
1 files changed, 3 insertions(+), 1 deletions(-)

M cli/main.d
M cli/main.d => cli/main.d +3 -1
@@ 169,7 169,9 @@ string fmtshort( JSONValue j ) {
		"#" , j["id"].integer , // #ID
		j["old"].boolean ? " [DEPRECATED] " : " " , // deprecated
		j["title"].str , "\n\t" , // title
		j["time"].integer.fmtdate() // date and time
		j["time"].integer.fmtdate() , // date and time
		j["tags"].array.length == 0 ? "" : "\n\t" ~
			j["tags"].array.map!( t => "[" ~ t.str ~ "]" ).array.join( " " )
	) ;
}