Operations
This document provides all the operations currently supported by c0nfig. Each operation is designed to perform specific tasks during the execution of remote configurations.
Operation | Description |
---|---|
add | Copies a file content to a specified local destination. |
add-import | Adds an import statement to a specified local file if it doesn't already exist. |
add-export | Appends an export statement to a specified local file if it doesn't already exist. |
install | Installs specified dependencies and devDependencies using the project's package manager. |
select | Presents a list of options to the user and executes operations based on the user's selection. |
input | Prompts the user for input, stores the result in a variable, and executes actions based on the input. |
readJSON | Reads a value from a JSON file and executes operations based on that value. |
updateJSON | Updates a value in a local JSON file at a specified path. |
conditional | Evaluates a condition and executes operations based on the result (if-then-else structure). |