typos in previous pr are causing panics

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2020-04-21 10:46:23 -05:00
parent 1ed849f2d1
commit 860356970b
4 changed files with 4 additions and 21 deletions

View File

@ -43,23 +43,6 @@ var (
attachOpts entities.AttachOptions
)
func init() {
registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode},
Command: attachCommand,
})
flags := attachCommand.Flags()
attachFlags(flags)
registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode},
Command: containerAttachCommand,
Parent: containerCmd,
})
containerAttachFlags := containerAttachCommand.Flags()
attachFlags(containerAttachFlags)
}
func attachFlags(flags *pflag.FlagSet) {
flags.StringVar(&attachOpts.DetachKeys, "detach-keys", containerConfig.DetachKeys(), "Select the key sequence for detaching a container. Format is a single character `[a-Z]` or a comma separated sequence of `ctrl-<value>`, where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`")
flags.BoolVar(&attachOpts.NoStdin, "no-stdin", false, "Do not attach STDIN. The default is false")

View File

@ -72,7 +72,7 @@ func init() {
registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
Command: containerAttachCommand,
Command: containerCommitCommand,
Parent: containerCmd,
})
containerCommitFlags := containerCommitCommand.Flags()

View File

@ -66,7 +66,7 @@ func init() {
Parent: containerCmd,
})
containerStartFlags := containerRunCommand.Flags()
containerStartFlags := containerStartCommand.Flags()
startFlags(containerStartFlags)
}