Skip to content

ephemeral run: Print hint when running in foreground#255

Merged
cgwalters merged 1 commit intomainfrom
bcvk-242
May 1, 2026
Merged

ephemeral run: Print hint when running in foreground#255
cgwalters merged 1 commit intomainfrom
bcvk-242

Conversation

@gursewak1997
Copy link
Copy Markdown
Collaborator

When running without -d, print a helpful hint explaining how to connect via SSH or view console output, avoiding confusion about the command appearing to hang.

Fixes: #242

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a helpful hint for users running ephemeral VMs in foreground mode, providing instructions on how to connect via SSH or view the VM output. The review feedback correctly identifies that this hint is redundant when the --console flag is already provided and suggests updating the conditional logic to exclude that case.

Comment thread crates/kit/src/run_ephemeral.rs Outdated
When running without -d, print a helpful hint explaining how to
connect via SSH or view console output, avoiding confusion about
the command appearing to hang.

Signed-off-by: gursewak1997 <gursmangat@gmail.com>
@cgwalters cgwalters enabled auto-merge (rebase) May 1, 2026 15:05
// Print helpful hint when running in foreground mode without console
if !opts.podman.detach && !opts.common.console && std::io::stderr().is_terminal() {
if let Some(name) = &opts.podman.name {
eprintln!(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor nit but I think in general for interacting with the user I would say we should just use println! or possibly indicatif.

@cgwalters cgwalters merged commit 39959ee into main May 1, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing bcvk ephemeral run default behaviour

2 participants