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

Map metadata #104

Merged
merged 7 commits into from
Mar 20, 2019
Merged

Map metadata #104

merged 7 commits into from
Mar 20, 2019

Conversation

atoghill
Copy link
Contributor

Introduced in this PR is the ability to specify new map metadata using the modify map command. As shown in the attached gif users are first prompted as to whether or not they wish to add metadata to the map, this defaults to no and pressing enter skips straight to the editor like it would previously.

However if the user enters some variation of yes then they will be prompted to enter values for both the map dimensions and pattern, as described in #102.

map-metadata

Resolves #102 when merged.

Andrew added 7 commits March 20, 2019 12:10
This is a test of tty-prompt that will be used to ask the user if they
wish to add map metadata or not when running `modify map` on an asset.
For now this will use no as the default so the user can simply press
enter to skip adding metadata for an asset's map.
This will appear as `map_dimensions` and `map_pattern` under the
`mutable` header.
The `action` method felt cluttered with all the prompts housed within
it. So I have moved these to the new `get_map_metadata_from_user` method
that is called if the user selects yes on the first prompt.
@atoghill atoghill requested a review from DavidMarchant March 20, 2019 14:06
@DavidMarchant
Copy link
Contributor

LGTM! Thanks for this, especially the fancy gif

@DavidMarchant DavidMarchant merged commit 6369646 into develop Mar 20, 2019
@DavidMarchant DavidMarchant deleted the feature/map-metadata branch March 20, 2019 16:52
@sierra-tango-echo
Copy link
Member

O M G FANCY GIF! 🤯

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

Successfully merging this pull request may close these issues.

3 participants