David Fang would like Owners Override to review this change.
[fortune] Source of random productivity tips
Can be run once per login, for example.
diff --git a/scripts/fortunes/OWNERS b/scripts/fortunes/OWNERS
new file mode 100644
index 0000000..72e8ffc
--- /dev/null
+++ b/scripts/fortunes/OWNERS
@@ -0,0 +1 @@
+*
diff --git a/scripts/fortunes/fuchsia_fortunes.py b/scripts/fortunes/fuchsia_fortunes.py
new file mode 100755
index 0000000..6f58c61
--- /dev/null
+++ b/scripts/fortunes/fuchsia_fortunes.py
@@ -0,0 +1,43 @@
+#!/usr/bin/env fuchsia-vendored-python
+# Copyright 2023 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""fuchsia_fortunes.py prints a random fortune each time.
+
+Example usage: run this script once per ssh login.
+"""
+import random
+import sys
+from typing import Sequence
+
+# Guidelines:
+# Keep entries short, typically one or two lines.
+# Use links.
+_FORTUNE_SET = [
+ # sections by topic:
+ # General
+ "Learn Fuchsia productivity tricks one tidbit at a time: go/fuchsia-fortunes.",
+ # Build
+ """Looking for 'fx build' support? go/fuchsia-build-chat""",
+ """Slow build? File a report at go/fx-build-slow.
+Include a link to data from 'fx report-last-build'.""",
+ """Accelerate builds with remote execution and caching:
+https://fuchsia.dev/internal/intree/concepts/remote-builds""",
+ # fx
+ """Help with fx commands: fx help COMMAND""",
+ # ffx
+ # editors
+ # Infra
+ # testing
+ # debugging
+ # add more helpful entries here...
+]
+
+
+def main(argv: Sequence[str]) -> int:
+ print(random.choice(_FORTUNE_SET))
+ return 0
+
+
+if __name__ == "__main__":
+ main(sys.argv[1:])
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
*
We don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
We don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.
Ok, starting with Build team, but intend to broaden from there.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +2 |
Owners-Override | +1 |
David FangWe don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.
Ok, starting with Build team, but intend to broaden from there.
Thanks!
# Copyright 2023 The Fuchsia Authors. All rights reserved.
2025
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |