MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / do_procrastinate

Method do_procrastinate

tests/test_cmd2.py:1526–1533  ·  view source on GitHub ↗

Waste time in your manner of choice.

(self, arg)

Source from the content-addressed store, hash-verified

1524 self.stdout.write(result)
1525
1526 def do_procrastinate(self, arg) -> None:
1527 """Waste time in your manner of choice."""
1528 # Pass in a list of tuples for selections
1529 leisure_activity = self.select(
1530 [("Netflix and chill", "Netflix"), ("YouTube", "WebSurfing")], "How would you like to procrastinate? "
1531 )
1532 result = f"Have fun procrasinating with {leisure_activity}!\n"
1533 self.stdout.write(result)
1534
1535 def do_play(self, arg) -> None:
1536 """Play your favorite musical instrument."""

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected