cmd/create: Update hint after creating a container

Rewritten version of Toolbox supports newer syntax for entering a
container: `toolbox enter <name-of-container>`. This new workflow should
be shown in the hint after creating a container with `toolbox create`.

https://github.com/containers/toolbox/issues/489
This commit is contained in:
Ondřej Míchal 2020-07-07 19:10:36 +02:00 committed by Debarshi Ray
parent 61a5f5158c
commit 2aad8385e1

View file

@ -466,7 +466,7 @@ func getEnterCommand(container, release string) string {
case containerNamePrefixDefaultWithRelease:
enterCommand = fmt.Sprintf("%s enter --release %s", executableBase, release)
default:
enterCommand = fmt.Sprintf("%s enter --container %s", executableBase, container)
enterCommand = fmt.Sprintf("%s enter %s", executableBase, container)
}
return enterCommand