Skip to content

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

Open
@ivangretsky

Description

@ivangretsky

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions