mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-11 11:19:05 +08:00
Initialize Updates.check config setting
This commit is contained in:
parent
ecd6f3b00c
commit
6f033dd7a1
@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error {
|
||||
},
|
||||
}
|
||||
|
||||
cfg.Updates = config.Updates{
|
||||
Check: "error",
|
||||
}
|
||||
|
||||
err = config.WriteConfigFile(filename, cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{
|
||||
|
||||
Basic commands:
|
||||
|
||||
init Initialize ipfs local configuration.
|
||||
add <path> Add an object to ipfs.
|
||||
cat <ref> Show ipfs object data.
|
||||
ls <ref> List links from an object.
|
||||
|
||||
@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string {
|
||||
|
||||
// Updates regulates checking and downloading for application's most recent version
|
||||
type Updates struct {
|
||||
Check string // "ignore" for do not check, "warn" and "error" for reacting when obsolete
|
||||
Check string `json:"check"` // "ignore" for do not check, "warn" and "error" for reacting when obsolete
|
||||
}
|
||||
|
||||
// Config is used to load IPFS config files.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user