Skip to content

Commit

Permalink
Added Talon notification if the user has cloned the monorepo (#2690)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people authored Dec 1, 2024
1 parent 1e996d2 commit 6c86092
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dont_clone_monorepo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
This file exists in our monorepo so that if someone accidentally clones this monorepo
into their talon folder instead of cursorless-talon, they'll get a helpful error popup
"""

from talon import app


def on_ready():
app.notify(
"Whoops! You cloned our monorepo instead of cursorless-talon",
"Please remove cursorless and clone cursorless-talon instead:",
"https://github.com/cursorless-dev/cursorless-talon",
)


app.register("ready", on_ready)

0 comments on commit 6c86092

Please sign in to comment.