gu
Types
Constants
pub const type_error: String
pub const type_question: String
pub const type_warning: String
Functions
pub fn add_bool(
command: List(String),
condition: Bool,
str: String,
) -> List(String)
Deprecated: Use `add_option_bool()` instead.
pub fn add_calendar(
command: List(String),
calendar: String,
) -> List(String)
pub fn add_column(
command: List(String),
column: String,
) -> List(String)
pub fn add_combo_and_values(
command: List(String),
combo: String,
values values: List(String),
) -> List(String)
pub fn add_extra_button(
command: List(String),
extra_button: String,
) -> List(String)
pub fn add_list_and_values(
command: List(String),
list_name: String,
values values: List(String),
column_values column_values: Option(List(String)),
) -> List(String)
pub fn add_opt(
command: List(String),
opt: Option(String),
str: String,
) -> List(String)
Deprecated: Use `add_option()` instead.
pub fn add_opt_if(
command: List(String),
condition: Bool,
opt: String,
str: String,
) -> List(String)
Deprecated: Use `add_option_if()` instead.
pub fn add_opt_int(
command: List(String),
opt: Option(Int),
str: String,
) -> List(String)
Deprecated: Use `add_option_int()` instead.
pub fn add_opt_list(
command: List(String),
opt_list: Option(List(String)),
str: String,
) -> List(String)
Deprecated: Use `add_option_list()` instead.
pub fn add_option(
command: List(String),
opt: Option(String),
str: String,
) -> List(String)
pub fn add_option_bool(
command: List(String),
condition: Bool,
str: String,
) -> List(String)
pub fn add_option_if(
command: List(String),
condition: Bool,
opt: String,
str: String,
) -> List(String)
pub fn add_option_int(
command: List(String),
opt: Option(Int),
str: String,
) -> List(String)
pub fn add_option_list(
command: List(String),
opt_list: Option(List(String)),
str: String,
) -> List(String)
pub fn add_password(
command: List(String),
password: String,
) -> List(String)
pub fn add_value_if(
command: List(String),
condition: Bool,
value: String,
) -> List(String)
pub fn new_calendar(
command: List(String),
text text: Option(String),
day day: Option(Int),
month month: Option(Int),
year year: Option(Int),
date_format date_format: Option(String),
) -> List(String)
pub fn new_color_selection(
command: List(String),
color color: Option(String),
show_palette show_palette: Bool,
) -> List(String)
pub fn new_entry(
command: List(String),
text text: Option(String),
entry_text entry_text: Option(String),
hide_text hide_text: Bool,
) -> List(String)
pub fn new_file_selection(
command: List(String),
filename filename: Option(String),
multiple multiple: Bool,
directory directory: Bool,
save save: Bool,
separator separator: Option(String),
file_filter file_filter: Option(List(String)),
) -> List(String)
pub fn new_list_opts(
command: List(String),
checklist checklist: Bool,
radiolist radiolist: Bool,
imagelist imagelist: Bool,
separator separator: Option(String),
multiple multiple: Bool,
editable editable: Bool,
print_column print_column: Option(String),
hide_column hide_column: Option(Int),
hide_header hide_header: Bool,
) -> List(String)
pub fn new_message_opts(
command: List(String),
text text: Option(String),
icon icon: Option(String),
no_wrap no_wrap: Bool,
no_markup no_markup: Bool,
ellipsize ellipsize: Bool,
) -> List(String)
pub fn new_notification(
command: List(String),
text text: Option(String),
icon icon: Option(String),
listen listen: Bool,
) -> List(String)
pub fn new_password(
command: List(String),
username username: Bool,
) -> List(String)
pub fn new_progress(
command: List(String),
text text: Option(String),
percentage percentage: Option(String),
pulsate pulsate: Bool,
auto_close auto_close: Bool,
auto_kill auto_kill: Bool,
no_cancel no_cancel: Bool,
time_remaining time_remaining: Bool,
) -> List(String)
TODO: stdin
pub fn new_question(command: List(String)) -> List(String)
pub fn new_question_opts(
command: List(String),
default_cancel default_cancel: Bool,
switch switch: Bool,
) -> List(String)
pub fn new_scale(
command: List(String),
text text: Option(String),
value value: Option(Int),
min_value min_value: Option(Int),
max_value max_value: Option(Int),
step step: Option(Int),
print_partial print_partial: Bool,
hide_value hide_value: Bool,
) -> List(String)
pub fn new_text_info(
command: List(String),
filename filename: Option(String),
editable editable: Bool,
font font: Option(String),
checkbox checkbox: Option(String),
auto_scroll auto_scroll: Bool,
) -> List(String)
pub fn new_warning(command: List(String)) -> List(String)
pub fn parse_list(str: String, separator: String) -> List(String)
Deprecated: Use `string.split(prompt())` instead.
pub fn prompt(
command: List(String),
) -> Result(String, #(Int, String))
Same as show(err: False)
, but trims the last newline from the result
pub fn prompt_in(
command: List(String),
in_dir: String,
) -> Result(String, #(Int, String))
Same as show_in(err: False)
, but trims the last newline from the result
pub fn run(
command: List(String),
errors errors: Bool,
) -> Option(#(Int, String))
Deprecated: Use `show()` instead.
pub fn set_cancel_label(
command: List(String),
cancel_label: String,
) -> List(String)
pub fn set_forms_date_format(
command: List(String),
format: String,
) -> List(String)
pub fn set_height(
command: List(String),
height: Int,
) -> List(String)
pub fn set_ok_label(
command: List(String),
ok_label: String,
) -> List(String)
pub fn set_separator(
command: List(String),
separator: String,
) -> List(String)
pub fn set_show_header(command: List(String)) -> List(String)
pub fn set_timeout(
command: List(String),
timeout: Int,
) -> List(String)
pub fn show(
command: List(String),
err capture_errors: Bool,
) -> Result(String, #(Int, String))
Same as show_in(".")
pub fn show_in(
command: List(String),
in_dir: String,
err capture_errors: Bool,
) -> Result(String, #(Int, String))