Initialize Updates.check config setting
Peter Borzov committed
Oct 6, 2014 at 16:08 UTC
6f033dd7a18c140f8d6a276de75a99125404a0ff
4 files changed
+6
-1
cmd/ipfs/init.go
+4
@@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error {
135
},
136
}
137
138
+ cfg.Updates = config.Updates{
139
+ Check: "error",
140
+ }
141
+
142
err = config.WriteConfigFile(filename, cfg)
143
if err != nil {
144
return err
cmd/ipfs/ipfs.go
+1
@@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{
24
25
Basic commands:
26
27
+ init Initialize ipfs local configuration.
28
add <path> Add an object to ipfs.
29
cat <ref> Show ipfs object data.
30
ls <ref> List links from an object.
config/config.go
+1
-1
@@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string {
47
48
// Updates regulates checking and downloading for application's most recent version
49
type Updates struct {
50
- Check string // "ignore" for do not check, "warn" and "error" for reacting when obsolete
50
+ Check string `json:"check"` // "ignore" for do not check, "warn" and "error" for reacting when obsolete
51
}
52
53
// Config is used to load IPFS config files.