mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 19:54:55 +01:00
20 lines
402 B
Go
20 lines
402 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/ddworken/hishtory/client/hctx"
|
|
"github.com/ddworken/hishtory/client/lib"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var updateCmd = &cobra.Command{
|
|
Use: "update",
|
|
Short: "Securely update hishtory to the latest version",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
lib.CheckFatalError(lib.Update(hctx.MakeContext()))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(updateCmd)
|
|
}
|