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.

OperationDescription
addCopies a file content to a specified local destination.
add-importAdds an import statement to a specified local file if it doesn't already exist.
add-exportAppends an export statement to a specified local file if it doesn't already exist.
installInstalls specified dependencies and devDependencies using the project's package manager.
selectPresents a list of options to the user and executes operations based on the user's selection.
inputPrompts the user for input, stores the result in a variable, and executes actions based on the input.
readJSONReads a value from a JSON file and executes operations based on that value.
updateJSONUpdates a value in a local JSON file at a specified path.
conditionalEvaluates a condition and executes operations based on the result (if-then-else structure).