mirror of
https://github.com/hanzoai/container.git
synced 2026-10-30 15:06:01 +00:00
23 lines
491 B
Go
23 lines
491 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/abiosoft/colima/cmd/root"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// statusCmd represents the status command
|
|
var updateCmd = &cobra.Command{
|
|
Use: "update [profile]",
|
|
Aliases: []string{"u", "up"},
|
|
Short: "update the container runtime",
|
|
Long: `Update the current container runtime.`,
|
|
Args: cobra.MaximumNArgs(1),
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return newApp().Update()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
root.Cmd().AddCommand(updateCmd)
|
|
}
|