Skip to content

Commit

Permalink
Enable interactive model for setup command
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <guillem@fragile.tech>
  • Loading branch information
Guillemdb committed Sep 12, 2022
1 parent 6d0213b commit 0505feb
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 0505feb

Please sign in to comment.