Skip to content

Commit

Permalink
Merge pull request #379 from FragileTech/setupcmd
Browse files Browse the repository at this point in the history
Fix interactive mode
  • Loading branch information
Guillemdb authored Sep 12, 2022
2 parents 6d0213b + 0505feb commit ae6028f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/mloq/commands/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ def _sub_commands():
)

return (
CiCMD,
DockerCMD,
DocsCMD,
GlobalsCMD,
ProjectCMD,
PackageCMD,
LicenseCMD,
LintCMD,
PackageCMD,
ProjectCMD,
CiCMD,
DocsCMD,
DockerCMD,
RequirementsCMD,
)

Expand Down Expand Up @@ -77,7 +77,9 @@ def directories(self) -> Tuple[Path]:
def interactive_config(self) -> DictConfig:
"""Generate the configuration of the project interactively."""
click.echo("Provide the values to generate the project configuration.")
return self.parse_config()
for cmd in self.sub_commands:
cmd.interactive_config()
return self.record.config

def parse_config(self) -> DictConfig:
"""Update the configuration DictConfig with the Command parameters."""
Expand Down

0 comments on commit ae6028f

Please sign in to comment.