diff --git a/doc/getting-started/run.md b/doc/getting-started/run.md index 32ce5f2f..f1dfda83 100644 --- a/doc/getting-started/run.md +++ b/doc/getting-started/run.md @@ -154,11 +154,12 @@ do that by setting the `tty` option to `true`: use Castor\Attribute\AsTask; use function Castor\run; +use function Castor\context; #[AsTask()] function foo(): void { - run('echo "bar"', tty: true); + run('echo "bar"', context: context()->withTty(false)); } ``` @@ -174,10 +175,11 @@ the process: use Castor\Attribute\AsTask; use function Castor\run; +use function Castor\context; #[AsTask()] function foo(): void { - run('echo "bar"', pty: false); + run('echo "bar"', context: context()->withPty(false)); } ```