mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add "copied from https://github.com/restic/restic/tree/master/internal/selfupdate"
This commit is contained in:
parent
322dbcf372
commit
78fc9cdfa0
|
@ -37,8 +37,8 @@ var Commands = []*Command{
|
||||||
cmdScaffold,
|
cmdScaffold,
|
||||||
cmdServer,
|
cmdServer,
|
||||||
cmdShell,
|
cmdShell,
|
||||||
cmdUpload,
|
|
||||||
cmdUpdate,
|
cmdUpdate,
|
||||||
|
cmdUpload,
|
||||||
cmdVersion,
|
cmdVersion,
|
||||||
cmdVolume,
|
cmdVolume,
|
||||||
cmdWebDav,
|
cmdWebDav,
|
||||||
|
|
|
@ -25,6 +25,8 @@ import (
|
||||||
"golang.org/x/net/context/ctxhttp"
|
"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.
|
// Release collects data about a single release on GitHub.
|
||||||
type Release struct {
|
type Release struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
@ -59,8 +61,8 @@ func init() {
|
||||||
|
|
||||||
var cmdUpdate = &Command{
|
var cmdUpdate = &Command{
|
||||||
UsageLine: "update [-output=weed]",
|
UsageLine: "update [-output=weed]",
|
||||||
Short: "get latest stable version from https://github.com/chrislusf/seaweedfs",
|
Short: "get latest version from https://github.com/chrislusf/seaweedfs",
|
||||||
Long: `get latest stable version from https://github.com/chrislusf/seaweedfs`,
|
Long: `get latest version from https://github.com/chrislusf/seaweedfs`,
|
||||||
}
|
}
|
||||||
|
|
||||||
func runUpdate(cmd *Command, args []string) bool {
|
func runUpdate(cmd *Command, args []string) bool {
|
||||||
|
|
Loading…
Reference in a new issue