-
Notifications
You must be signed in to change notification settings - Fork 19
Da/drop #234
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
Conversation
fix clone URL so it works for everyone
// first check to make sure the script is actually a script | ||
let Ok(_) = get_entry(&process) else { | ||
return Err(anyhow!("terminal: process {} not found", process)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, is this check necessary? it's not crazy to have aliases be settable for nonexistent scripts and show a descriptive error when the alias gets used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like having the extra check. It saves an extra step from 1. save alias, 2. try using alias and it fails, 3. reset alias
to just 1. get an error for failed alias 2. reset alias
Plus this check adds basically no time
NOTE: can't merge before hyperware-ai/process_lib#50 (need to update
Cargo.toml
s to reflect latest version)drop_capabilities
added tostandard_host.rs
OnExit::Requests
alias
Note that while
DropCaps
isn't used in the final version of this PR, it was tested on an earlier commit