-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Improve style of prompts using rich
#1901
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
070049e
Added support for adding human readable description/question for each…
vemonet 2350512
Only add select in choice questions when description is not defined
vemonet ef5fdec
start adding rich
vemonet 5282df1
merge with human readable prompts
vemonet df4c1c8
merge and improve rich prompts
vemonet f5936fd
Fix tests, keep 100% coverage
vemonet b5ce867
add support for json prompt with rich
vemonet 428dbf9
add tests for git config extraction, fix linting issues, reach 100% c…
vemonet 40b9f4a
Merge branch 'main' into rich-prompts
vemonet 3b42858
merge with upstream main and fix conflicts
vemonet fa32a8f
Extend the confirmation prompt to accept various yes/no answers, same…
vemonet 91a50b5
add instructions to use rich markup to readme
vemonet e2c2dde
remove .github/ISSUE_TEMPLATE/bug.yml
vemonet c7539a7
Merge branch 'main' of https://github.com/cookiecutter/cookiecutter i…
vemonet c3b99bc
fix replay test, remove tmp dir also before tests
vemonet File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
name: 🐞 Bug Report | ||
title: '🐞 ' | ||
description: Report a bug | ||
labels: ['type: bug', 'status: needs triage'] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please search for [existing issues](https://github.com/cookiecutter/cookiecutter/issues?q=is%3Aissue) about this problem first. | ||
|
||
- type: input | ||
id: cookiecutter-version | ||
attributes: | ||
label: Cookiecutter version | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: python-version | ||
attributes: | ||
label: Python version | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: os | ||
attributes: | ||
label: Operating System | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: template-project-url | ||
attributes: | ||
label: Template project URL | ||
description: URL to the project template with which the bug happens | ||
|
||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: What are you trying to get done, what has happened, what went wrong, and what did you expect? | ||
placeholder: Bug description | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: Reproduction | ||
description: A link to a reproduction repo or steps to reproduce the behaviour. | ||
placeholder: | | ||
Paste a log of command(s) you ran and cookiecutter's output, tracebacks, etc, here | ||
|
||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ def _get_version() -> str: | |
'python-slugify>=4.0.0', | ||
'requests>=2.23.0', | ||
'arrow', | ||
'rich', | ||
] | ||
|
||
setup( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, that was not supposed to be pushed in this branch! Well spotted, I removed it @ericof