Actions are functions available in preset files. They are a layer of abstraction for diverse kind of manipulations, such as copies, editions, deletions, package installations, and more.
They are the key concept of Preset: easy to use, powerful enough to make almost any kind of preset.
Actions are globally avaiable in a preset file. Typings are provided by default if you used
preset init, so you can benefit from IDE autocompletion. Every action is a single asynchronous function call with a single object parameter. Every object parameter accepts a
title property that changes the text displayed in the console for the corresponding action when applying the preset.
The following actions are implemented.
|Extracts file from the preset's template directory
|Installs Node or PHP packages
|Executes shell commands in the target directory
|Performs file manipulations on the selected files
|Renames files or directories
|Deletes files or directories
|Apply nested presets
|Applies another preset
|Groups multiple actions together
|Asks for user input