Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to Shiny for Python will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [UNRELEASED]

### Bug fixes

* `shiny create` now uses the template `id` rather than the directory name as the default directory. (#1666)

## [1.1.0] - 2024-09-03

### New features
Expand Down
3 changes: 1 addition & 2 deletions shiny/_main_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ def app_template_questions(
mode: Optional[str] = None,
dest_dir: Optional[Path] = None,
):
template_dir = template.path
template_cli_name = cli_bold(cli_field(template.title or template.id))

if mode == "express" and not template.express_available:
Expand All @@ -666,7 +665,7 @@ def app_template_questions(
)

click.echo(cli_wait(f"Creating {template_cli_name} Shiny app..."))
dest_dir = directory_prompt(dest_dir, template_dir.name)
dest_dir = directory_prompt(dest_dir, template.id)

if mode is None and template.express_available:
mode = questionary.select(
Expand Down
Loading