Skip to content

Make replacements a keyword argument to prompt! #289

@WilliamMcCumstie

Description

@WilliamMcCumstie

The replacements argument to the prompt! method updates the model with the new values. This occur before the method prompts for any missing keys within its template.

It should not however be a positional argument as it's inconsistent with the other class methods. Instead, replacements should be a keyword argument.

The method needs refactoring in general, possible to behave more like flight-metal version. However it current works in general.

def self.prompt!(replacements=nil, *a, all: false)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions