Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child process manager api #64

Merged
merged 8 commits into from
Apr 5, 2023
Merged

Conversation

thesuzerain
Copy link
Contributor

  • restructures Children.rs a little bit so that we can store perpetually existing strings (the stderr/stdout logs!) to query whenever we want that auto-update (I think probably the cleanest way to use with tauri?)
  • added process API

Fixes MOD-335

theseus/src/state/children.rs Show resolved Hide resolved
if let Some(child_stdout) = child.stdout.take() {
let stdout_clone = stdout.clone();
tokio::spawn(async move {
stdout_clone.read_stdout(child_stdout).await.unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no unwraps! properly handle errors here. by the way, does this sync up? like will this constantly stream input? the code seems to be just one time

Copy link
Member

@Geometrically Geometrically left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one minor thing we should add

},
State,
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that is missing is getting all running profiles. The main use case I see for this is displaying the running profile(s) in the app bar

@Geometrically Geometrically merged commit d5505d3 into master Apr 5, 2023
@Geometrically Geometrically deleted the child-process-manager-api branch April 5, 2023 17:08
Geometrically pushed a commit that referenced this pull request Jul 4, 2024
* fix some styling (oops)

* Update pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants