Task Proxy runs PowerShell scripts (.ps1 files), from your project's root folder. PowerShell 7 runs on Windows, Mac, and Linux. If Task Proxy can't find it, the Terminal Manager explains how to install it, and can install it for you on some systems.
Open Files from the folder icon at the bottom of the left navigation.
Click any .ps1 file in the tree to open it. You can change it there, then Save it, or Revert it to what's on disk. New File makes a new one in the folder that's selected.
If the script starts with a param() block, Task Proxy gives each parameter its own input: a text box for values, and a switch for [switch] parameters.
param(
[ValidateSet('unit', 'e2e', 'all')]
[string]$Suite = 'unit',
[string]$Filter = '',
[switch]$Watch
)
Below them is the exact command that will run, with your values in it. Turn on Full path to see the script's full path rather than its path in the project, and Copy Command copies it. Clear Params empties every input. Each script's values are kept with the project.
Click Run. The Terminals tab of Tools, the toolbox at the top right, opens on the new run, as it does for scripts run from a page or a favorite. With changes not saved, the button reads Save and Run, and saves them first, since the saved file is what runs.
Choose the script in the Script dropdown to see its output. Scripts run in a real terminal, so colors, progress bars, and lines that redraw look the way they do in your own terminal window. Output is kept after a script finishes, so you can come back to it later.
When a script asks a question, for example with Read-Host or a "Continue? [Y/N]" prompt, click in the terminal and type your answer, then press Enter.
The switch at the top of the Terminal Manager chooses which scripts its Script dropdown lists:
| View | Lists |
|---|---|
| Live | A terminal of your own. Type PowerShell in Script Content and click Run |
| Saved | Every script saved in this project, ready to run from here |
| Page | The scripts you ran from this project's pages |
| Running | What is running in this project |
| All Running | What is running in every project |
| Finished | Every run that has ended, in every project, the latest first, saying which failed |
Run a script while another is running, and it waits its turn, then runs. Remove takes a finished page script off the list, and Remove Finished Page Scripts clears them all. Select All copies the whole output.
A script can start something that outlives it, such as a dev server. To open those as terminals here, rather than windows of their own, see the next tutorial, Open terminals from your scripts. To find and stop processes still running, see Find and stop what is still running.
A big build or test run can take every core and leave the rest of your computer sluggish. Open Settings from the Task Proxy logo, and choose the Performance tab:
The limits cover the scripts Task Proxy runs, from the Terminal Manager, pages, and favorites, along with everything they start. They apply to scripts started after a change, so a script already running keeps the limits it started with. Scripts opened in a separate terminal window are not limited, and macOS can only lower priority.
Run the same script many times a day? Make it a favorite, and run it in one click from any page.
Continue to Open terminals from your scripts
You can also come chat with us on the Stoic Dreams discord server.
Use Task Proxy on your computer from this browser: its projects, pages, scripts, and Git Controller.