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

User interface library "survey" has been archived #1881

Open
afbjorklund opened this issue Oct 4, 2023 · 2 comments
Open

User interface library "survey" has been archived #1881

afbjorklund opened this issue Oct 4, 2023 · 2 comments
Labels
area/cli limactl CLI user experience

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented Oct 4, 2023

Description

This repository has been archived by the owner on Sep 24, 2023. It is now read-only.

AlecAivazis/survey@160123e

Might want to look for a replacement, or use a different / maintained fork of the library.

If someone else wants to take over maintainence, please reach out


https://github.com/AlecAivazis/survey/network

	github.com/AlecAivazis/survey/v2 v2.3.7

https://github.com/AlecAivazis/survey#readme

⚠️ This project is no longer maintained. For an alternative, please check out:
https://github.com/charmbracelet/bubbletea ⚠️

@afbjorklund
Copy link
Contributor Author

afbjorklund commented Dec 29, 2023

Here is a small test program, to compare the text user interface frameworks:

package main

import (
	"fmt"

	"github.com/lima-vm/lima/pkg/uiutil"
)

func main() {
	ok, err := uiutil.Confirm("Everything ok?", true)
	if err != nil {
		panic("error")
	}
	fmt.Printf("%v\n", ok)

	options := []string{"one", "two", "three"}
	ans, err := uiutil.Select("Favorite number?", options)
	if err != nil {
		panic("error")
	}
	fmt.Printf("%v\n", ans)
}

survey

https://github.com/AlecAivazis/survey

35 lines of code (d1f546c)

lima-uiutil-survey

bubbletea (+bubbles)

https://github.com/charmbracelet/bubbletea

158 lines of code (76b4d9a)

lima-uiutil-bubbletea

@afbjorklund
Copy link
Contributor Author

afbjorklund commented May 5, 2024

New library in 2023: https://github.com/charmbracelet/huh

Slightly more suitable interface elements, compared with above:

huh-confirm

huh-select

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli limactl CLI user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants