mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 19:39:41 +01:00
GraphQL, WebSocket, import, runner and CLI (M5, M6) plus packaging
- GraphQL editor with schema introspection, cached schema, autocomplete and explorer - WebSocket: auth and subprotocols in the handshake, text/JSON/hex/file messages, saved messages, live log with filter, search and export, reconnect with backoff - Import from Postman (collections and environments), Bruno, Insomnia, OpenAPI/Swagger and cURL; imported scripts are kept as docs, never run; credentials move to the gitignored secrets file - Code snippets for cURL, fetch, Python, HTTPie, Go, PowerShell; Postman export - Runner for folders and collections with JSON and JUnit reports - knock CLI: send, run, import, auth login/debug/logout - Large JSON responses parsed off the main thread - PKGBUILDs, desktop entry with knock:// handler, CI workflow, README
This commit is contained in:
@@ -3,6 +3,7 @@ mod db;
|
||||
mod oauth;
|
||||
mod state;
|
||||
mod watch;
|
||||
mod ws;
|
||||
|
||||
use tauri::Manager;
|
||||
|
||||
@@ -22,6 +23,7 @@ pub fn run() {
|
||||
let dir = app.path().app_data_dir()?;
|
||||
app.manage(state::AppState::new(dir)?);
|
||||
app.manage(oauth::OauthState::default());
|
||||
app.manage(ws::WsState::default());
|
||||
Ok(())
|
||||
})
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
@@ -67,11 +69,24 @@ pub fn run() {
|
||||
commands::setting_set,
|
||||
commands::path_params,
|
||||
commands::app_version,
|
||||
commands::write_text_file,
|
||||
commands::runner_run,
|
||||
commands::import_curl,
|
||||
commands::import_detect,
|
||||
commands::import_source,
|
||||
commands::import_text,
|
||||
commands::import_environment,
|
||||
commands::export_postman,
|
||||
commands::code_snippet,
|
||||
oauth::oauth_status,
|
||||
oauth::oauth_run,
|
||||
oauth::oauth_callback,
|
||||
oauth::oauth_deep_link,
|
||||
oauth::oauth_cancel,
|
||||
ws::ws_connect,
|
||||
ws::ws_send,
|
||||
ws::ws_ping,
|
||||
ws::ws_close,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running knock");
|
||||
|
||||
Reference in New Issue
Block a user