mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
refactor: move ClipboardWatcher import to top level
This commit is contained in:
parent
7a1c1982f0
commit
8f2a84629a
1 changed files with 1 additions and 3 deletions
|
@ -14,6 +14,7 @@ import importlib_resources
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from prompt_toolkit.enums import EditingMode
|
from prompt_toolkit.enums import EditingMode
|
||||||
|
|
||||||
|
from aider.copypaste import ClipboardWatcher
|
||||||
from aider import __version__, models, urls, utils
|
from aider import __version__, models, urls, utils
|
||||||
from aider.analytics import Analytics
|
from aider.analytics import Analytics
|
||||||
from aider.args import get_parser
|
from aider.args import get_parser
|
||||||
|
@ -826,10 +827,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
coder.file_watcher = file_watcher
|
coder.file_watcher = file_watcher
|
||||||
|
|
||||||
if args.copypaste:
|
if args.copypaste:
|
||||||
from aider.copypaste import ClipboardWatcher
|
|
||||||
|
|
||||||
clipboard_watcher = ClipboardWatcher(coder.io, verbose=args.verbose)
|
clipboard_watcher = ClipboardWatcher(coder.io, verbose=args.verbose)
|
||||||
clipboard_watcher.start()
|
|
||||||
|
|
||||||
coder.show_announcements()
|
coder.show_announcements()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue