sennenki/pretty_prompt/editing does not have a README file
pub struct CompletionItem {
replacement_text : String
display_text : String
filter_text : String
description : String
}fn CompletionItem::new(replacement_text : String, display_text? : String, filter_text? : String, description? : String) -> CompletionItempub struct CompletionState {
items : Array[CompletionItem]
selected_index : Int
filter_prefix : String
all_items : Array[CompletionItem]
}pub struct HistoryConfiguration {
persistent_history_filepath : String?
max_entries : Int
}impl Default for HistoryConfigurationfn HistoryConfiguration::new(persistent_history_filepath? : String, max_entries? : Int) -> HistoryConfigurationpub struct HistoryLog {
entries : Array[String]
config : HistoryConfiguration
navigation_index : Int?
unsubmitted_buffer : String
submissions_since_last_trim : Int
}fn HistoryLog::navigate_search(self : HistoryLog, query : String, start_index : Int) -> (Int, String)?fn OverloadItem::new(signature : String, summary? : String, parameters? : Array[Parameter]) -> OverloadItempub struct Parameter {
name : String
description : String
}pub struct SearchState {
query : String
history_index : Int
}pub struct Selection {
anchor : Int
active : Int
}type UndoManagerpub struct UndoRecord {
text : String
cursor_pos : Int
}Install
Download zipA pretty prompt library for Moonbit, providing an easy way to create interactive command-line interfaces with customizable prompts and input handling.
Dependencies