rubber-ducky 1.5.2__tar.gz → 1.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rubber_ducky-1.5.2/rubber_ducky.egg-info → rubber_ducky-1.5.3}/PKG-INFO +1 -1
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/ducky/ducky.py +14 -1
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/pyproject.toml +1 -1
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3/rubber_ducky.egg-info}/PKG-INFO +1 -1
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/LICENSE +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/MANIFEST.in +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/README.md +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/ducky/__init__.py +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/ducky/config.py +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/ducky/crumb.py +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/examples/POLLING_USER_GUIDE.md +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/examples/mock-logs/info.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/examples/mock-logs/mock-logs.sh +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/rubber_ducky.egg-info/SOURCES.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/rubber_ducky.egg-info/dependency_links.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/rubber_ducky.egg-info/entry_points.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/rubber_ducky.egg-info/requires.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/rubber_ducky.egg-info/top_level.txt +0 -0
- {rubber_ducky-1.5.2 → rubber_ducky-1.5.3}/setup.cfg +0 -0
|
@@ -1029,6 +1029,12 @@ async def ducky() -> None:
|
|
|
1029
1029
|
action="store_true",
|
|
1030
1030
|
help="Run DuckY offline using a local Ollama instance on localhost:11434",
|
|
1031
1031
|
)
|
|
1032
|
+
parser.add_argument(
|
|
1033
|
+
"--yolo",
|
|
1034
|
+
"-y",
|
|
1035
|
+
action="store_true",
|
|
1036
|
+
help=" Automatically run the suggested command without confirmation",
|
|
1037
|
+
)
|
|
1032
1038
|
parser.add_argument(
|
|
1033
1039
|
"single_prompt",
|
|
1034
1040
|
nargs="?",
|
|
@@ -1117,7 +1123,14 @@ async def ducky() -> None:
|
|
|
1117
1123
|
rubber_ducky, args.single_prompt, code=code, logger=logger
|
|
1118
1124
|
)
|
|
1119
1125
|
if result.command:
|
|
1120
|
-
if
|
|
1126
|
+
if args.yolo:
|
|
1127
|
+
await run_shell_and_print(
|
|
1128
|
+
rubber_ducky,
|
|
1129
|
+
result.command,
|
|
1130
|
+
logger=logger,
|
|
1131
|
+
history=rubber_ducky.messages,
|
|
1132
|
+
)
|
|
1133
|
+
elif copy_to_clipboard(result.command):
|
|
1121
1134
|
console.print("\n[green]✓[/green] Command copied to clipboard")
|
|
1122
1135
|
return
|
|
1123
1136
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|