feat: add repo commands to the si cli
This commit is contained in:
+8
-7
@@ -3,6 +3,7 @@ use std::sync::Arc;
|
||||
use gpui::*;
|
||||
use gpui_platform::application;
|
||||
use settings::SettingsStore;
|
||||
use signed_app::AppRoot;
|
||||
use ui::theme::{ActiveTheme as _, Theme};
|
||||
|
||||
actions!(signed, [Quit]);
|
||||
@@ -44,8 +45,6 @@ fn main() {
|
||||
.with_assets(AppAssets)
|
||||
.with_http_client(Arc::new(reqwest_client::ReqwestClient::new()))
|
||||
.run(move |cx| {
|
||||
ui::init(cx);
|
||||
|
||||
cx.bind_keys([
|
||||
KeyBinding::new("cmd-q", Quit, None),
|
||||
KeyBinding::new("ctrl-q", Quit, None),
|
||||
@@ -54,16 +53,18 @@ fn main() {
|
||||
cx.on_action(|_: &Quit, cx| cx.quit());
|
||||
cx.set_app_identity("build.signed.signed", "Signed");
|
||||
|
||||
ui::init(cx);
|
||||
metadata::init(cx);
|
||||
|
||||
if let Err(error) = signed_state::init(cx) {
|
||||
tracing::error!("failed to initialize application state: {error:#}");
|
||||
cx.quit();
|
||||
return;
|
||||
}
|
||||
|
||||
let appearance = SettingsStore::global(cx).read(cx).settings().appearance;
|
||||
signed_app::AppRoot::apply_appearance_mode(appearance, cx);
|
||||
|
||||
metadata::init(cx);
|
||||
let settings = SettingsStore::global(cx);
|
||||
let appearance = settings.read(cx).settings().appearance;
|
||||
AppRoot::apply_appearance_mode(appearance, cx);
|
||||
|
||||
let theme = cx.theme();
|
||||
let bounds = Bounds::centered(None, size(px(1120.0), px(750.0)), cx);
|
||||
@@ -97,7 +98,7 @@ fn main() {
|
||||
})
|
||||
.detach();
|
||||
|
||||
signed_app::AppRoot::mount(window, cx)
|
||||
AppRoot::mount(window, cx)
|
||||
}) {
|
||||
tracing::error!("failed to open window: {error}");
|
||||
cx.quit();
|
||||
|
||||
Reference in New Issue
Block a user