mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
monitor: add long help for commands
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
@ -21,7 +21,19 @@ func NewRollbackCmd(m types.Monitor, invokeConfig controllerapi.InvokeConfig, st
|
||||
}
|
||||
|
||||
func (cm *RollbackCmd) Info() types.CommandInfo {
|
||||
return types.CommandInfo{HelpMessage: "re-runs the interactive container with initial rootfs contents"}
|
||||
return types.CommandInfo{
|
||||
Name: "rollback",
|
||||
HelpMessage: "re-runs the interactive container with the step's rootfs contents",
|
||||
HelpMessageLong: `
|
||||
Usage:
|
||||
rollback [FLAGS] [COMMAND] [ARG...]
|
||||
|
||||
Flags:
|
||||
--init Run the container with the initial rootfs of that step.
|
||||
|
||||
COMMAND and ARG... will be executed in the container.
|
||||
`,
|
||||
}
|
||||
}
|
||||
|
||||
func (cm *RollbackCmd) Exec(ctx context.Context, args []string) error {
|
||||
|
Reference in New Issue
Block a user