Verified Commit 871efaf7 authored by Sebastian Endres's avatar Sebastian Endres
Browse files

More colors in dirlisting

parent 451ae5df
......@@ -2,13 +2,14 @@
"""Create a human readable static directory listing for a given folder."""
import argparse
import shutil
import os
import shutil
from datetime import datetime
from pathlib import Path
from typing import NamedTuple
import jinja2
from termcolor import colored
from utils import YaspinWrapper, existing_dir_path
......@@ -117,7 +118,7 @@ class Cli:
with index_file_name.open("w") as index_file:
index_file.write(index_html)
spinner.write(f"{index_file_name} written.")
spinner.write(colored(f"{index_file_name} written.", color="green"))
def create_dirlisting_in_root(self, root: Path, spinner: YaspinWrapper):
"""docstring for create_dirlisting_in_root"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment