Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set default output directory #1308

Open
PeterJ504 opened this issue Apr 23, 2024 · 2 comments
Open

feat: set default output directory #1308

PeterJ504 opened this issue Apr 23, 2024 · 2 comments
Labels
question Further information is requested waiting for response Waiting for additional information

Comments

@PeterJ504
Copy link

PeterJ504 commented Apr 23, 2024

Description

I have a block that I always want created in the same directory. I can use the -o option but it gets tedious as the directory path is long and constant. Is there a way to default the brick output directory to something else.

Perhaps adding a tag in the mason.yaml file would work.

@felangel
Copy link
Owner

felangel commented May 1, 2024

Hi @PeterJ504 👋
Thanks for opening an issue!

Can you provide a bit more context (for example what brick you're using and the full mason command you're running)?

@felangel felangel added question Further information is requested waiting for response Waiting for additional information labels May 1, 2024
@PeterJ504
Copy link
Author

PeterJ504 commented May 1, 2024

Hi @felangel.
Sure. Let's say I have my own global brick called project. I want all projects to create a subdirectory in the same root directory.
Currently, to make a new project I type mason make project -o c:\Users\Robert\OneDrive\Coding\flutter\projects
Since all projects go into the same folder, I'd like to be able to default the output directory so that I don't have to always type the long location name.
One solution would be to add a line in the brick's mason.yaml file. Something like:
default_dir: c:\Users\Robert\OneDrive\Coding\flutter\projects
Then when I run make again, if I don't specify the -o option, it will go in the default output directory instead of the current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting for response Waiting for additional information
Projects
None yet
Development

No branches or pull requests

2 participants