guol-fnst 2022-06-14 19:10:54 +08:00
parent 322dbcf372
commit 78fc9cdfa0
2 changed files with 5 additions and 3 deletions

View file

@ -37,8 +37,8 @@ var Commands = []*Command{
cmdScaffold,
cmdServer,
cmdShell,
cmdUpload,
cmdUpdate,
cmdUpload,
cmdVersion,
cmdVolume,
cmdWebDav,

View file

@ -25,6 +25,8 @@ import (
"golang.org/x/net/context/ctxhttp"
)
//copied from https://github.com/restic/restic/tree/master/internal/selfupdate
// Release collects data about a single release on GitHub.
type Release struct {
Name string `json:"name"`
@ -59,8 +61,8 @@ func init() {
var cmdUpdate = &Command{
UsageLine: "update [-output=weed]",
Short: "get latest stable version from https://github.com/chrislusf/seaweedfs",
Long: `get latest stable version from https://github.com/chrislusf/seaweedfs`,
Short: "get latest version from https://github.com/chrislusf/seaweedfs",
Long: `get latest version from https://github.com/chrislusf/seaweedfs`,
}
func runUpdate(cmd *Command, args []string) bool {