aws-amplify / aws-amplify/amplify-cli

Amplify Status hook for plugins

Open
#2,740 2 comments 0 reactions 1 assignee Claimed by @swaminator View on GitHub
feature-request pending-review platform
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

**Is your feature request related to a problem? Please describe.**
When you run `amplify status` it should show important info from the plugin callback. Today this is hard coded for every plugin. It would be nice to add it as an event that you can display important info whenever a user runs `amplify status`

**Describe the solution you'd like**
Add a new amplify event called `getStatus` which allows you to display info. This should also be moved outside of the provider and instead be dependent on the category plugins.

https://github.com/aws-amplify/amplify-cli/blob/8b225c1f9f16fed303adaaa91831bac7752d579d/packages/amplify-cli/src/extensions/amplify-helpers/show-helpful-provider-links.js#L14

This file could change to instead of looping through all the providers, it would loop through all the categories and see if they have a showHelpfulLink available

**Describe alternatives you've considered**
Making a pull request to the cloudformation provider to add custom callback location to all plugins but this would only work if they support cloudformation which isn't good.

**Additional context**
Current location where all the urls are being displayed from: https://github.com/aws-amplify/amplify-cli/blob/54676797b913d4a2c284c62244c8ccf8e55a44d8/packages/amplify-provider-awscloudformation/lib/display-helpful-urls.js

Current location that is goes into the provider: https://github.com/aws-amplify/amplify-cli/blob/8b225c1f9f16fed303adaaa91831bac7752d579d/packages/amplify-cli/src/extensions/amplify-helpers/show-helpful-provider-links.js#L14

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.