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

[FEATURE-70] Adds functionality to perform a single render via --no-reload #78

Merged
merged 1 commit into from
May 8, 2021

Conversation

apoclyps
Copy link
Owner

@apoclyps apoclyps commented May 4, 2021

What's Changed

closes #70 and closes #76 if merged

adds function to perform a single UI render via single_render when --no-reload is provided. otherwise defaults to the continuous update-render cycle used in the render function.

Technical Description

Adds a single_render function that removes the progress tracker and footer UI for progress tracking and only renders the output after data has been returned by Github

export REPOSITORY_CONFIGURATION="apoclyps/my-dev-space,apoclyps/reviews,apoclyps/magic-home"
python cli.py dashboard
python cli.py dashboard --reload

displays the following UI in a continuous loop

image

python cli.py dashboard --no-reload

displays the UI once before exiting the application.

image

@apoclyps apoclyps added enhancement New feature or request python Pull requests that update Python code labels May 4, 2021
@@ -17,19 +17,23 @@ async def main():


@main.command(help="Display a dashboard")
async def dashboard():
@click.option("-r", "--reload/--no-reload", default=True, is_flag=True)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apoclyps apoclyps force-pushed the kyleharrison/feature-70/single-render branch from 7c8d76b to eb62709 Compare May 4, 2021 20:02
@apoclyps apoclyps changed the title [FEATURE-70] Adds function to perform a single UI render [FEATURE-70] Adds functionality to perform a single render via --no-reload May 4, 2021
@apoclyps apoclyps force-pushed the kyleharrison/feature-70/single-render branch from eb62709 to d4395d2 Compare May 4, 2021 20:04
@apoclyps apoclyps force-pushed the kyleharrison/feature-70/single-render branch from d4395d2 to 6d9511e Compare May 4, 2021 20:11
@apoclyps apoclyps force-pushed the kyleharrison/feature-70/single-render branch from 6d9511e to 48232b8 Compare May 8, 2021 13:45
@apoclyps apoclyps merged commit 307ad6c into main May 8, 2021
@apoclyps apoclyps deleted the kyleharrison/feature-70/single-render branch May 8, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add flag to perform a single dashboard update - render cycle
1 participant