Use mason make <BRICK_NAME> to generate files from a brick. You can provide variables in several ways:
1. Command line arguments:
Pass variables directly as flags.
mason make hello --name Felix
2. Interactive prompts:
If a variable is not provided as an argument, Mason will prompt the user for input.
name: [user input here]
3. Configuration file:
Pass a JSON file containing the variables using the -c flag.
mason make hello -c config.json
Example config.json:
{
"name": "Felix"
}
Customizing Output:
Use the -o or --output-dir flag to specify a custom directory for the generated files.
mason make hello --name Felix -o ./path/to/directory
mason make hello --name Felix