Merge pull request #128 from warren618/fix/repl-shlex-split

This commit is contained in:
Ömer
2026-03-22 19:41:01 +03:00
committed by GitHub
9 changed files with 48 additions and 12 deletions
@@ -19,6 +19,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -759,7 +760,10 @@ def repl(project_path):
_repl_help(skin)
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -896,8 +897,11 @@ def repl(project_path):
skin.help(_repl_commands)
continue
# Parse and execute command
args = line.split()
# Parse and execute command (shlex handles quoted strings with spaces)
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -27,6 +27,7 @@ Usage:
import sys
import os
import json
import shlex
import click
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -385,7 +386,10 @@ def repl():
click.echo(f" {cmd:<12} {subs}")
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -1006,7 +1007,10 @@ def repl(project_path):
_repl_help(skin)
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -712,7 +713,10 @@ def repl(project_path):
skin.help(commands_dict)
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -703,7 +704,10 @@ def repl(project_path):
_repl_help(skin)
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -800,7 +801,10 @@ def repl(project_path):
_repl_help(skin)
continue
args = line.split()
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -17,6 +17,7 @@ Usage:
import sys
import os
import json
import shlex
import click
from typing import Optional
@@ -467,8 +468,11 @@ def repl():
skin.help(_repl_commands)
continue
# Parse and execute command
args = line.split()
# Parse and execute command (shlex handles quoted strings with spaces)
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit:
@@ -25,6 +25,7 @@ Usage:
import sys
import os
import json
import shlex
import webbrowser
import click
from typing import Optional
@@ -486,8 +487,11 @@ def repl():
skin.help(_repl_commands)
continue
# Parse and execute command
args = line.split()
# Parse and execute command (shlex handles quoted strings with spaces)
try:
args = shlex.split(line)
except ValueError:
args = line.split()
try:
cli.main(args, standalone_mode=False)
except SystemExit: