mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-17 15:27:58 +00:00
art: Add --debug to upgrade
This commit is contained in:
committed by
Itxaka
parent
149c825e4b
commit
be558ead39
@@ -26,6 +26,10 @@ var cmds = []cli.Command{
|
|||||||
Name: "force",
|
Name: "force",
|
||||||
Usage: "Force an upgrade",
|
Usage: "Force an upgrade",
|
||||||
},
|
},
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "debug",
|
||||||
|
Usage: "Show debug output",
|
||||||
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "image",
|
Name: "image",
|
||||||
Usage: "Specify an full image reference, e.g.: quay.io/some/image:tag",
|
Usage: "Specify an full image reference, e.g.: quay.io/some/image:tag",
|
||||||
@@ -78,6 +82,7 @@ See https://docs.c3os.io/after_install/upgrades/#manual for documentation.
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
args := c.Args()
|
args := c.Args()
|
||||||
var v string
|
var v string
|
||||||
@@ -85,7 +90,7 @@ See https://docs.c3os.io/after_install/upgrades/#manual for documentation.
|
|||||||
v = args[0]
|
v = args[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
return agent.Upgrade(v, c.String("image"), c.Bool("force"))
|
return agent.Upgrade(v, c.String("image"), c.Bool("force"), c.Bool("debug"))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user