feat: add repo commands to the si cli
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-29 18:48:34 +07:00
parent 9b5c7a34db
commit 7721ddd6a8
9 changed files with 527 additions and 189 deletions
+8 -7
View File
@@ -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();