Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/askui/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,22 @@ def cli(
from askui import VisionAgent

with VisionAgent() as agent:
# Use for Windows
agent.cli(fr'start "" "C:\Program Files\VideoLAN\VLC\vlc.exe"') # Start in VLC non-blocking
agent.cli(fr'"C:\Program Files\VideoLAN\VLC\vlc.exe"') # Start in VLC blocking

# Mac
agent.cli("open -a chrome") # Open Chrome non-blocking for mac
agent.cli("chrome") # Open Chrome blocking for linux
agent.cli("echo Hello World") # Prints "Hello World"
agent.cli("ls -la") # Lists files in current directory with details
agent.cli("python --version") # Displays Python version

# Linux
agent.cli("nohub chrome") # Open Chrome non-blocking for linux
agent.cli("chrome") # Open Chrome blocking for linux
agent.cli("echo Hello World") # Prints "Hello World"
agent.cli("python --version") # Displays Python version

```
"""
logger.debug("VisionAgent received instruction to execute '%s' on cli", command)
Expand Down