docs: updates some of the examples

This commit is contained in:
Daylin Morgan 2022-12-20 14:15:17 -06:00
parent 9bfaea4ef0
commit c159dd6032
2 changed files with 2 additions and 5 deletions

View file

@ -18,10 +18,7 @@ def hello(name: str):
@app.command() @app.command()
def goodbye(name: str, formal: bool = False): def goodbye(name: str, formal: bool = False):
if formal: print(f"Bye {name}")
print(f"Goodbye Ms. {name}. Have a good day.")
else:
print(f"Bye {name}!")
if __name__ == "__main__": if __name__ == "__main__":

View file

@ -17,4 +17,4 @@ f = Figlet(font="slant")
print(f.renderText("Viv isn't venv!")) print(f.renderText("Viv isn't venv!"))
print("Sys path:") print("Sys path:")
print("\n".join(sys.path)) print("\n".join(sorted(set(sys.path))))