<#4440 [Core feature] Integrate Bubble Tea with f...
# flyte-github
c
#4440 [Core feature] Integrate Bubble Tea with flytectl Issue created by troychiu ### 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
Copy code
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](https://private-user-images.githubusercontent.com/114708546/283619079-fb485a65-e5ae-491b-a17f-da916528a0d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTA0OTAsIm5iZiI6MTc0ODY1MDE5MCwicGF0aCI6Ii8xMTQ3MDg1NDYvMjgzNjE5MDc5LWZiNDg1YTY1LWU1YWUtNDkxYi1hMTdmLWRhOTE2NTI4YTBkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNTMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDUzMVQwMDA5NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NWM5NDAyZDhmYzY2ZTNkYWM1ZTBlMmExZmI4YjU3MjI5NmRjMmQ3NWIxODY4YmU1MjNkZjk0NzVkMTIzNDg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.xl9LHxLADK_Fd_CGiRZV7cXBqAftzBwEDlX0LGyQrnk) ## 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](https://private-user-images.githubusercontent.com/114708546/283626616-ece4a268-536a-4df2-a51f-c6029797f33a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTA0OTAsIm5iZiI6MTc0ODY1MDE5MCwicGF0aCI6Ii8xMTQ3MDg1NDYvMjgzNjI2NjE2LWVjZTRhMjY4LTUzNmEtNGRmMi1hNTFmLWM2MDI5Nzk3ZjMzYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNTMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDUzMVQwMDA5NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMWE3OWE0NDVlMTU0MDFkMDcxNWM5MTJjMTFjYzc4MDMyOGRmYWQ5NTQ4M2Y5NmJlNjc0NGEzMDBkZDc2MzQ5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UhlJ21cj8971LFSosWRQ32ISZflLGN0rGlwFxuopUF0) With bubble tea TUI components: [截圖 2023-11-16 下午5 47 02](https://private-user-images.githubusercontent.com/114708546/283626574-4723fe52-979d-422f-94cf-1307e0133a3d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDg2NTA0OTAsIm5iZiI6MTc0ODY1MDE5MCwicGF0aCI6Ii8xMTQ3MDg1NDYvMjgzNjI2NTc0LTQ3MjNmZTUyLTk3OWQtNDIyZi05NGNmLTEzMDdlMDEzM2EzZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNTMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDUzMVQwMDA5NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjQ5YTViNWY5NjVhNzQzOWU5N2E1N2M5MjJhMWI2N2ZiMDdhYmVjZWIwMDc0ZGYyOTQ0OGIzY2M2ZGFiMzk5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bTAvhNwtbxg2kLnnEECyDsUQcbv9uQsYWRzzX-xDEQg) ### 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 flyteorg/flyte