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

How to reload Robo config from within the command? #1167

Open
ivangretsky opened this issue Sep 11, 2024 · 0 comments
Open

How to reload Robo config from within the command? #1167

ivangretsky opened this issue Sep 11, 2024 · 0 comments

Comments

@ivangretsky
Copy link

Good day! Thanks for the very useful project!

Not sure if this is the right place to ask questions. But I didn't find any other one)) If I am writing in the wrong place, please direct me to the one I should be at.

I am creating a meta command that runs other commands like this:

public function initialSetup(ConsoleIO $io) {
    $io->say("initial-setup");

    $this->getConfig($io);
    // $this->reloadRoboConfig(); // pseudocode
    $this->new($io);
    ...
}

The getCofig() command copies robo.yml to current dir from another folder. This config data should be used in the subsequent command. But it is not available. I think it is because the new config has not been loaded. The question is - how do I reload config so it reads the new file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant