Fix logout & clean command
This commit is contained in:
@@ -334,6 +334,17 @@ export function confirm(
|
||||
return syscall("editor.confirm", message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prompt the user for confirmation
|
||||
* @param message the message to show in the confirmation dialog
|
||||
* @returns
|
||||
*/
|
||||
export function alert(
|
||||
message: string,
|
||||
): Promise<boolean> {
|
||||
return syscall("editor.alert", message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of a UI option
|
||||
* @param key the key of the UI option to get
|
||||
|
||||
Reference in New Issue
Block a user