@@ -251,9 +251,15 @@ def build(self, input, output):
251251 input_dir = pathlib .Path (input )
252252 output_dir = pathlib .Path (output )
253253
254- print (DARK_GRAY + "Collected %d resources" % len (self .site ) + RESET )
254+ click .echo (
255+ click .style ("Collected %d resources" % len (self .site ), fg = 'bright_black' )
256+ )
255257 for page in self .site .pages :
256- print (GREEN + " + " + RESET + BOLD + str (page .path ) + RESET + DARK_GRAY + " [markdown]" + RESET )
258+ click .echo (
259+ click .style (" + " , fg = 'green' ) +
260+ click .style (str (page .path ), bold = True ) +
261+ click .style (" [markdown]" , fg = 'bright_black' )
262+ )
257263 input_path = input_dir .joinpath (page .path )
258264 output_path = output_dir .joinpath (page .build_path )
259265
@@ -268,7 +274,11 @@ def build(self, input, output):
268274 output_path .write_text (output )
269275
270276 for static in self .site .statics :
271- print (GREEN + " + " + RESET + BOLD + str (static .path ) + RESET + DARK_GRAY + " [static]" + RESET )
277+ click .echo (
278+ click .style (" + " , fg = 'green' ) +
279+ click .style (str (static .path ), bold = True ) +
280+ click .style (" [static]" , fg = 'bright_black' )
281+ )
272282 input_path = input_dir .joinpath (static .path )
273283 output_path = output_dir .joinpath (static .path )
274284
@@ -278,12 +288,22 @@ def build(self, input, output):
278288 def serve (self , input ):
279289 input_dir = pathlib .Path (input )
280290
281- print (DARK_GRAY + "Serving %d resources" % len (self .site ) + RESET )
291+ click .echo (
292+ click .style ("Serving %d resources" % len (self .site ), fg = 'bright_black' )
293+ )
282294 for page in self .site .pages :
283- print (GREEN + " + " + RESET + BOLD + str (page .url ) + RESET + DARK_GRAY + " [markdown]" + RESET )
295+ click .echo (
296+ click .style (" + " , fg = 'green' ) +
297+ click .style (str (page .url ), bold = True ) +
298+ click .style (" [markdown]" , fg = 'bright_black' )
299+ )
284300 for static in self .site .statics :
285- print (GREEN + " + " + RESET + BOLD + str (static .url ) + RESET + DARK_GRAY + " [static]" + RESET )
286- print ()
301+ click .echo (
302+ click .style (" + " , fg = 'green' ) +
303+ click .style (str (static .url ), bold = True ) +
304+ click .style (" [static]" , fg = 'bright_black' )
305+ )
306+ click .echo ()
287307
288308 def app (request ):
289309 resource = self .site .lookup_by_url (request .url .path )
0 commit comments