def get_run(text, foreground): run = Run() run.Text = text if foreground is not None: run.Foreground = foreground return run
def get_prompt(prompt): run = Run() run.Text = prompt run.Foreground = blue return run