Merge pull request #2323 from baude/varlinkconditional

Only build varlink when buildtag is available
This commit is contained in:
OpenShift Merge Robot
2019-02-13 07:19:48 +01:00
committed by GitHub
2 changed files with 10 additions and 5 deletions

View File

@ -42,10 +42,13 @@ func getMainCommands() []*cobra.Command {
_topCommand,
_umountCommand,
_unpauseCommand,
_varlinkCommand,
volumeCommand.Command,
_waitCommand,
}
if len(_varlinkCommand.Use) > 0 {
rootCommands = append(rootCommands, _varlinkCommand)
}
return rootCommands
}

View File

@ -2,8 +2,10 @@
package main
import (
"github.com/containers/libpod/cmd/podman/cliconfig"
)
import "github.com/spf13/cobra"
var varlinkCommand *cliconfig.PodmanCommand
var (
_varlinkCommand = &cobra.Command{
Use: "",
}
)