diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..641dcebd6 Binary files /dev/null and b/.DS_Store differ diff --git a/implement-cowsay/.gitignore b/implement-cowsay/.gitignore new file mode 100644 index 000000000..1d17dae13 --- /dev/null +++ b/implement-cowsay/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/implement-cowsay/main.py b/implement-cowsay/main.py new file mode 100644 index 000000000..7277eecac --- /dev/null +++ b/implement-cowsay/main.py @@ -0,0 +1,29 @@ +import argparse +import cowsay + +all_animals= sorted(cowsay.char_names) + +parser = argparse.ArgumentParser( + prog = "cowsay", + description= "Make animals say things" +) + +parser.add_argument( + "--animal", + choices = all_animals, + default = "cow", + help = "What do you want animal to say " + +) + +parser.add_argument( + "message", + nargs="+", + help = "The message to say" +) + +args = parser.parse_args() + +full_message = " ".join(args.message) + +print(cowsay.get_output_string(args.animal, full_message)) diff --git a/implement-cowsay/requirement.txt b/implement-cowsay/requirement.txt new file mode 100644 index 000000000..c6b9ffd0e --- /dev/null +++ b/implement-cowsay/requirement.txt @@ -0,0 +1 @@ +cowsay diff --git a/implement-shell-tools/.DS_Store b/implement-shell-tools/.DS_Store new file mode 100644 index 000000000..a00719516 Binary files /dev/null and b/implement-shell-tools/.DS_Store differ