Skip to content

Commit f48b9f2

Browse files
committed
because we care
1 parent a7c0883 commit f48b9f2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

contentctl/contentctl.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pathlib
2+
import random
23
import sys
34
import traceback
45
import warnings
@@ -155,6 +156,24 @@ def test_common_func(config: test_common):
155156
"""
156157

157158

159+
def get_random_compliment():
160+
compliments = [
161+
"Your code is as elegant as a perfectly balanced binary tree! 🌳",
162+
"You're the human equivalent of well-documented code! ⭐",
163+
"Bug-free code? Must be your work! 🚀",
164+
"You make debugging look like an art form! 🎨",
165+
"Your commits are poetry in motion! 📝",
166+
"You're the exception handler of excellence! 🛡️",
167+
"Your code reviews are legendary! 👑",
168+
"You're the MVP of the repository! 🏆",
169+
]
170+
return random.choice(compliments)
171+
172+
173+
def recognize_func():
174+
print(get_random_compliment())
175+
176+
158177
def main():
159178
print(CONTENTCTL_5_WARNING)
160179
try:
@@ -210,6 +229,7 @@ def main():
210229
"test_servers": test_servers.model_construct(**t.__dict__),
211230
"release_notes": release_notes.model_construct(**config_obj),
212231
"deploy_acs": deploy_acs.model_construct(**t.__dict__),
232+
"recognize": tyro.conf.Subcommand(),
213233
}
214234
)
215235

@@ -240,6 +260,8 @@ def main():
240260
deploy_acs_func(updated_config)
241261
elif type(config) is test or type(config) is test_servers:
242262
test_common_func(config)
263+
elif type(config) is tyro.conf.Subcommand:
264+
recognize_func()
243265
else:
244266
raise Exception(f"Unknown command line type '{type(config).__name__}'")
245267
except FileNotFoundError as e:

0 commit comments

Comments
 (0)