Child process manager api (#64)

* child process api

* added hook to js

* process API + restructured process state storage

* formatting

* added path-pid check and fixed probs

* prettier

* added profile checking function

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
This commit is contained in:
Wyatt Verchere
2023-04-05 10:07:59 -07:00
committed by GitHub
parent 8169d3ad49
commit d5505d3298
14 changed files with 574 additions and 97 deletions

View File

@@ -29,8 +29,6 @@ fn main() {
api::profile::profile_list,
api::profile::profile_run,
api::profile::profile_run_wait,
api::profile::profile_kill,
api::profile::profile_wait_for,
api::auth::auth_authenticate_begin_flow,
api::auth::auth_authenticate_await_completion,
api::auth::auth_refresh,
@@ -47,6 +45,17 @@ fn main() {
api::tags::tags_get_tag_bundle,
api::settings::settings_get,
api::settings::settings_set,
api::process::process_get_all_pids,
api::process::process_get_all_running_pids,
api::process::process_get_pids_by_profile_path,
api::process::process_get_all_running_profile_paths,
api::process::process_get_all_running_profiles,
api::process::process_get_exit_status_by_pid,
api::process::process_has_finished_by_pid,
api::process::process_get_stderr_by_pid,
api::process::process_get_stdout_by_pid,
api::process::process_kill_by_pid,
api::process::process_wait_for_by_pid,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");