*: fix lint issues
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
d56bf090ce
commit
8088d7a1e2
10 changed files with 43 additions and 41 deletions
|
@ -30,7 +30,7 @@ var basicFunctions = template.FuncMap{
|
|||
// HeaderFunctions are used to created headers of a table.
|
||||
// This is a replacement of basicFunctions for header generation
|
||||
// because we want the header to remain intact.
|
||||
// Some functions like `split` are irrevelant so not added.
|
||||
// Some functions like `split` are irrelevant so not added.
|
||||
var headerFunctions = template.FuncMap{
|
||||
"json": func(v string) string {
|
||||
return v
|
||||
|
|
|
@ -85,14 +85,14 @@ func inspectCmd(c *cli.Context) error {
|
|||
return errors.Wrapf(err, "error parsing container data")
|
||||
}
|
||||
case inspectTypeImage:
|
||||
data, err = libkpodimage.GetImageData(server.Store(), name)
|
||||
data, err = libkpodimage.GetData(server.Store(), name)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error parsing image data")
|
||||
}
|
||||
case inspectAll:
|
||||
ctrData, err := server.GetContainerData(name, size)
|
||||
if err != nil {
|
||||
imgData, err := libkpodimage.GetImageData(server.Store(), name)
|
||||
imgData, err := libkpodimage.GetData(server.Store(), name)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error parsing container or image data")
|
||||
}
|
||||
|
|
|
@ -8,9 +8,6 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
//Version of kpod
|
||||
const Version string = "0.0.1"
|
||||
|
||||
func main() {
|
||||
if reexec.Init() {
|
||||
return
|
||||
|
@ -19,7 +16,7 @@ func main() {
|
|||
app := cli.NewApp()
|
||||
app.Name = "kpod"
|
||||
app.Usage = "manage pods and images"
|
||||
app.Version = Version
|
||||
app.Version = "0.0.1"
|
||||
|
||||
app.Commands = []cli.Command{
|
||||
diffCommand,
|
||||
|
|
|
@ -17,7 +17,7 @@ var (
|
|||
|
||||
// versionCmd gets and prints version info for version command
|
||||
func versionCmd(c *cli.Context) error {
|
||||
fmt.Println("Version: ", Version)
|
||||
fmt.Println("Version: ", c.App.Version)
|
||||
fmt.Println("Go Version: ", runtime.Version())
|
||||
if gitCommit != "" {
|
||||
fmt.Println("Git Commit: ", gitCommit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue