Skip to content

Adds 'flask' sub-command - #499

Merged
tdstein merged 7 commits into
masterfrom
tdstein/491
Oct 23, 2023
Merged

tdstein merged 7 commits into
masterfrom
tdstein/491

Conversation

@tdstein

@tdstein tdstein commented Oct 17, 2023 •

Copy link
Copy Markdown
Collaborator

Intent

Adds the sub-command flask to deploy and write-manifest.

In both instances, flask is syntactic sugar. The underlying implementation is a direct alias to the existing api sub-command.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

The api implementation supports Flask APIs. Therefore, a new AppMode is not required.

This change adds an optional description parameter to the functions that construct the click argument. If provided, the value is used instead of AppType#desc.

Automated Tests

Directions for Reviewers

Try running rsconnect deploy flask and rsconnect write-manifest flask.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.

@github-actions

github-actions Bot commented Oct 17, 2023 •

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4238 2782 66% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/main.py 56% 🟢
TOTAL 56% 🟢

updated for commit: 0d163a3 by action🐍

@tdstein tdstein changed the title Adds 'flask', 'asgi', and 'wsgi' options as aliases to 'api' and 'fas… Adds 'flask' sub-command Oct 18, 2023
@tdstein
tdstein marked this pull request as ready for review October 18, 2023 16:23
Comment thread CHANGELOG.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
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