@@ -295,14 +295,14 @@ def shell(self, shell_name: str | None = None) -> AsyncNamedShell:
295295
296296 Example:
297297 >>> # Create a named shell with a custom name
298- >>> shell = await devbox.shell(' my-session' )
298+ >>> shell = await devbox.shell(" my-session" )
299299 >>> # Create a named shell with an auto-generated UUID name
300300 >>> shell2 = await devbox.shell()
301301 >>> # Commands execute sequentially and share state
302- >>> await shell.exec(' cd /app' )
303- >>> await shell.exec(' export MY_VAR=value' )
304- >>> result = await shell.exec(' echo $MY_VAR' ) # Will output 'value'
305- >>> result = await shell.exec(' pwd' ) # Will output '/app'
302+ >>> await shell.exec(" cd /app" )
303+ >>> await shell.exec(" export MY_VAR=value" )
304+ >>> result = await shell.exec(" echo $MY_VAR" ) # Will output 'value'
305+ >>> result = await shell.exec(" pwd" ) # Will output '/app'
306306 """
307307 if shell_name is None :
308308 # uuid_utils is not typed
@@ -596,11 +596,11 @@ class AsyncNamedShell:
596596 shell name, it will re-attach to the existing named shell, preserving its state.
597597
598598 Example:
599- >>> shell = await devbox.shell(' my-session' )
600- >>> await shell.exec(' cd /app' )
601- >>> await shell.exec(' export MY_VAR=value' )
602- >>> result = await shell.exec(' echo $MY_VAR' ) # Will output 'value'
603- >>> result = await shell.exec(' pwd' ) # Will output '/app'
599+ >>> shell = await devbox.shell(" my-session" )
600+ >>> await shell.exec(" cd /app" )
601+ >>> await shell.exec(" export MY_VAR=value" )
602+ >>> result = await shell.exec(" echo $MY_VAR" ) # Will output 'value'
603+ >>> result = await shell.exec(" pwd" ) # Will output '/app'
604604 """
605605
606606 def __init__ (self , devbox : AsyncDevbox , shell_name : str ) -> None :
@@ -636,11 +636,11 @@ async def exec(
636636 :rtype: AsyncExecutionResult
637637
638638 Example:
639- >>> shell = await devbox.shell(' my-session' )
640- >>> result = await shell.exec(' ls -la' )
639+ >>> shell = await devbox.shell(" my-session" )
640+ >>> result = await shell.exec(" ls -la" )
641641 >>> print(await result.stdout())
642642 >>> # With streaming callbacks
643- >>> result = await shell.exec(' npm install' , stdout=lambda line: print(f"[LOG] {line}"))
643+ >>> result = await shell.exec(" npm install" , stdout=lambda line: print(f"[LOG] {line}"))
644644 """
645645 # Ensure shell_name is set and cannot be overridden by user params
646646 params = dict (params )
@@ -669,12 +669,12 @@ async def exec_async(
669669 :rtype: AsyncExecution
670670
671671 Example:
672- >>> shell = await devbox.shell(' my-session' )
673- >>> execution = await shell.exec_async(' long-running-task.sh' , stdout=lambda line: print(f"[LOG] {line}"))
672+ >>> shell = await devbox.shell(" my-session" )
673+ >>> execution = await shell.exec_async(" long-running-task.sh" , stdout=lambda line: print(f"[LOG] {line}"))
674674 >>> # Do other work while command runs...
675675 >>> result = await execution.result()
676676 >>> if result.success:
677- ... print(' Task completed successfully!' )
677+ ... print(" Task completed successfully!" )
678678 """
679679 # Ensure shell_name is set and cannot be overridden by user params
680680 params = dict (params )
0 commit comments