Skip to content

Commit 6c86092

Browse files
AndreasArvidssonpokeypre-commit-ci-lite[bot]
authored
Added Talon notification if the user has cloned the monorepo (#2690)
Related ##1953 ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --------- Co-authored-by: Pokey Rule <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 1e996d2 commit 6c86092

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dont_clone_monorepo.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
This file exists in our monorepo so that if someone accidentally clones this monorepo
3+
into their talon folder instead of cursorless-talon, they'll get a helpful error popup
4+
"""
5+
6+
from talon import app
7+
8+
9+
def on_ready():
10+
app.notify(
11+
"Whoops! You cloned our monorepo instead of cursorless-talon",
12+
"Please remove cursorless and clone cursorless-talon instead:",
13+
"https://github.com/cursorless-dev/cursorless-talon",
14+
)
15+
16+
17+
app.register("ready", on_ready)

0 commit comments

Comments
 (0)