Add application menu to install CLI
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
926c75dadf
commit
f77239bd96
3 changed files with 8 additions and 3 deletions
|
@ -43,7 +43,7 @@ actions!(
|
|||
OpenSettings,
|
||||
IncreaseBufferFontSize,
|
||||
DecreaseBufferFontSize,
|
||||
InstallCommandLineTool,
|
||||
InstallCommandLineInterface,
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -71,7 +71,7 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::MutableAppContext) {
|
|||
cx.refresh_windows();
|
||||
});
|
||||
});
|
||||
cx.add_global_action(move |_: &InstallCommandLineTool, cx| {
|
||||
cx.add_global_action(move |_: &InstallCommandLineInterface, cx| {
|
||||
cx.spawn(|cx| async move { install_cli(&cx).await.context("error creating CLI symlink") })
|
||||
.detach_and_log_err(cx);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue