-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use terminal detach keys sequence specified in the config file #4651
Conversation
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marcov, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Lint seems to be complaining about a bit of excess whitespace? |
03b540a
to
02496bf
Compare
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'd ask for tests, but I don't know how you'd actually do them in a sane way. Hm.
pkg/adapter/containers.go
Outdated
@@ -367,6 +367,23 @@ func (r *LocalRuntime) CreateContainer(ctx context.Context, c *cliconfig.CreateV | |||
return ctr.ID(), nil | |||
} | |||
|
|||
// Select the detach keys to use from user input flag, config file, or default value | |||
func (r *LocalRuntime) selectDetachKeys(flagValue string) (error, string) { |
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.
Should probably flip this to (string, error)
cmd/podman/exec.go
Outdated
@@ -36,6 +36,9 @@ func init() { | |||
flags := execCommand.Flags() | |||
flags.SetInterspersed(false) | |||
flags.StringVar(&execCommand.DetachKeys, "detach-keys", define.DefaultDetachKeys, "Select the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _") | |||
// Clear the default, the value specified in the config file should have the | |||
//priority |
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.
Missing a space between // and priority
Other than @mheon's comments, LGTM |
Fixes: containers#4556 Signed-off-by: Marco Vedovati <mv@sba.lat>
Updated, thank you! |
/lgtm |
Thanks @marcov |
Fixes: #4556
Signed-off-by: Marco Vedovati mv@sba.lat