Skip to content

Add --create-socket flag #20

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

Closed
wants to merge 1 commit into from

Conversation

mrdomino
Copy link
Collaborator

The semantics of --reuse-socket were confusing; --create-socket tries to be more straightforward, a true value indicates that the program is going to do something (which seems more intuitive.)

This also should open the door for inferring the value as in #9 if the flag is not specified (probably by making it an enum type rather than an Option<bool> and making the default value something like infer.)

The semantics of `--reuse-socket` were confusing; `--create-socket`
tries to be more straightforward, a true value indicates that the
program is going to do something (which seems more intuitive.)

This also should open the door for inferring the value as in stairwell-inc#9 if the
flag is not specified (probably by making it an enum type rather than an
`Option<bool>`.)
mrdomino added a commit that referenced this pull request Mar 15, 2025
This integrates #9 and #20 into one PR.

We add a `--create-socket` flag, deprecating `--reuse-socket` since the
former seems more intuitive. If `--create-socket` is true, then the
program will create and manage its own temporary SSH control socket; if
it is false, the program will not. If it is unspecified, then the
program will try to parse the output of `ssh -G` to decide whether or
not to create a socket, specifically looking for a `controlmaster auto`
line that would imply that the user is already using their own SSH
connection multiplexing.

This PR also includes a couple other changes:

- We switch to using the `linux-native-sync-persistent` keyring on
  Linux, in the hopes that this will work with what
  `aspect-credential-helper` will be using.
- Increments the version to 0.4.0.

---------

Co-authored-by: Andy Walker <andy@andy.dev>
@mrdomino
Copy link
Collaborator Author

Merged with #22.

@mrdomino mrdomino closed this Mar 15, 2025
@mrdomino mrdomino deleted the create-socket branch March 15, 2025 19:30
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.

1 participant