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

[Core feature] Integrate Bubble Tea with flytectl #4440

Open
2 tasks done
troychiu opened this issue Nov 16, 2023 · 0 comments
Open
2 tasks done

[Core feature] Integrate Bubble Tea with flytectl #4440

troychiu opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
bubble tea enhancement New feature or request flytectl Issues related to flytectl -Flytes CLI

Comments

@troychiu
Copy link
Member

Motivation: Why do you think this is important?

flytectl, built with Golang and Cobra, has been a reliable command line tool for Flyte. However, to enhance user experience and interaction, @pingsutw, @Future-Outlier, and I propose the integration of the Bubble Tea package, a modern, user-friendly framework for building flytectl.

Benefits

  1. Enhanced User Experience: Bubble Tea offers a more interactive and visually appealing interface. This enhances the overall user experience.
  2. Increased Accessibility: With Bubble Tea, we can create CLIs that are easier to navigate, especially for users who might not be familiar with command line operations. This accessibility broadens our tool's user base.

Goal: What should the final outcome look like, ideally?

Improved Interactivity

For example, when users type flytectl get without specifying what resources to get. The original output will be

To fetch a project, use the following command:
::

 flytectl get project

Usage:
  flytectl get [command]

Available Commands:
  cluster-resource-attribute Gets matchable resources of cluster resource attributes.
  execution                  Gets execution resources.
  execution-cluster-label    Gets matchable resources of execution cluster label.
  ...

With bubble tea, we can make it interactive
截圖 2023-11-16 下午4 56 55

Visual Enhancements

We can also enhance the visual experience with bubble tea TUI components (which means we don't have to maintainer printer by ourself)
Original:
截圖 2023-11-16 下午5 47 21
With bubble tea TUI components:
截圖 2023-11-16 下午5 47 02

Describe alternatives you've considered

Sticking with what we have now.

Propose: Link/Inline OR Additional context

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bubble tea enhancement New feature or request flytectl Issues related to flytectl -Flytes CLI
Projects
None yet
Development

No branches or pull requests

4 participants