You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this question about generating a list of files, but after search on docs and other issues, I think this is not implemented. Or maybe I do it in the wrong way... 🤔
I create this bug as a bug, but feel free to label it correctly if I miss something.
Description
I want to generate a list of files, from a list param in the brick.yaml file. This will allow the user of the brick to generate multiple files with the same logic inside.
For example, we want to generate multiple models from a brick called generate_data_models, with the following brick.yaml file:
name: generate_data_modelsdescription: Creates a new data modelsversion: 0.1.0+1environment:
mason: ">=0.1.0-dev.51 <0.1.0"vars:
data_folder_name:
type: stringdescription: Name of the data folder to put the model files inside.prompt: What is the data folder name?models:
type: listdescription: List of models, used to create basic model class files.prompt: What are the models names to create (separated by comma)?separator: ","
Hi!
I have this question about generating a list of files, but after search on docs and other issues, I think this is not implemented. Or maybe I do it in the wrong way... 🤔
I create this bug as a bug, but feel free to label it correctly if I miss something.
Description
I want to generate a list of files, from a
list
param in thebrick.yaml
file. This will allow the user of the brick to generate multiple files with the same logic inside.For example, we want to generate multiple models from a brick called
generate_data_models
, with the followingbrick.yaml
file:And the following brick tree:
When I generate the code from this brick, this will create the following tree (inspired by the Weather tuturial):
The expected output will be two separated files generated for
location
&weather
:Plus, inside each file we want to access to the current
model
to generate the relevant code class code for this model.The text was updated successfully, but these errors were encountered: