![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
CLSP short for Command Line Selection Prompt, is a by fzf inspired, minimalistic, and fast to navigate single choice prompt.
CLSP short for Command Line Selection Prompt, is a by fzf inspired, minimalistic, and fast to navigate single choice prompt.
from clsp import select
user_choice = select([1, 2, 3], info="Please pick a number:")
print("You selected:")
print(user_choice)
CLSP is designed to be user-friendly, minimal, and very easy to understand.
Due to it's search function, it supports large lists and spares the end-user unnecessary frustration.
It's especially useful if you'd like the user to choose between files, numbers, country codes, and much more.
# CLSP can be easily imported using:
from clsp import select
# You can then show the actual prompt by calling the select function while passing a list type as the positional argument.
user_choice = select(["Choose me!", "Dare to choose me!"])
# You can navigate using the arrow key up and the arrow key down while pressing enter to confirm your selection.
You can provide additional key arguments for further configuration:
Name | Type | Description |
---|---|---|
title | STR | Information shown above the prompt. |
prompt | STR | Text in front of user input. |
search | STR | Pre-insert text into the input prompt. |
current | INT | Index as the default selection. |
rows | INT | Amount of choices at a time. |
cutoff | FLOAT | Precision of search. (0 < x < 1). |
amount_results | INT | The maximum amount of search results to return. |
highlight_color | STR | Highlight color for search (black, red, green, yellow, blue, magenta, cyan, white). |
full_exit | BOOL | Exit completely or pass None on KeyBoardInterrupt or ESC. |
ignore_warnings | BOOL | Ignore warnings. |
# The function 'select' will return a Selection object which holds following attributes:
print(f"Selected value: {user_choice.value}")
# > "Choose me!" or "Dare to choose me!"
print(f"Index: {user_choice.index}")
# > 0 or 1
if user_choice.search:
print(f"Search-Query: {user_choice.search}")
# > For example 'Dare'
print(f"Search Result: {user_choice.search_result}")
# > For example ["Dare to chose me!"]
FAQs
CLSP short for Command Line Selection Prompt, is a by fzf inspired, minimalistic, and fast to navigate single choice prompt.
We found that clsp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.