FR: add a --forward-env parameter to "shpool attach"

Open
#364 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start at the shpool attach command handling and compare its existing --dir option with the configuration path used by --config-file. Determine how a repeatable or separated --forward-env value should reach a newly created session, then verify that selected environment variables are forwarded without requiring a generated configuration file.

Written by the indexing model from the issue text.

Description

AI Policy Ack
Ack

What new feature do you want?
shpool attach --foward-env= (you could make it repeatable, or only once but with an array value or separator). So I can specify environment variables to forward.
Similar idea to --dir= option

I am writing a script which dynamically decides which environment variables to forward to a new session it creates.

Now, I can probably work around this by dynamically generating a config toml file, and passing it as --config-file. If I am confident the daemon is already running by now, it won't be forwarded to the daemon, it will just be used by the attach. Still, that's a pretty complex workaround for not having an option

Dominant language
Rust
Stars
2k
Forks
70
Avg merge
2d 3h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shell-pool/shpool

All issues in shell-pool/shpool

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.