Skip to content

Commit

Permalink
bug: corrected data.json → data-cli.json for manual operations
Browse files Browse the repository at this point in the history
  • Loading branch information
wsw70 committed Jan 15, 2023
1 parent 3823bdc commit 14ecb67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ An example of what you should see (with two devices/configs) is

```text
PS D:\syncthing-map> .\syncthing-map.exe add --device srv --file config-srv.xml
2023-01-09T19:46:02+01:00 INF wrote data.json file
2023-01-09T19:46:02+01:00 INF wrote data-cli.json file
PS D:\syncthing-map> .\syncthing-map.exe add --device router --file config-router.xml
2023-01-09T19:46:16+01:00 INF wrote data.json file
2023-01-09T19:46:16+01:00 INF wrote data-cli.json file
```

This added (or updated) two devices to the database file. This file (`data.json` by default) will be initially created if absent, then updated with each `add` command. It gathers relevant information about each of the devices and its folders. The more you run `syncthing-map add`, the better your map will be - otherwise you will see that you are sharing fildes with a crazily named thing (this is the ID of the remote device).
This added (or updated) two devices to the database file. This file (`data-cli.json` by default) will be initially created if absent, then updated with each `add` command. It gathers relevant information about each of the devices and its folders. The more you run `syncthing-map add`, the better your map will be - otherwise you will see that you are sharing fildes with a crazily named thing (this is the ID of the remote device).

When you are done with adding devices/configurations, run

Expand Down
2 changes: 1 addition & 1 deletion readConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
)

// readConfigXML takes the hostname and config file and dumps a data.json representation for further use
// readConfigXML takes the hostname and config file and dumps a data-cli.json representation for further use
func readConfigXml(hostname string, configFile string, dataFilename string) {
var err error
var localDeviceId string
Expand Down
4 changes: 2 additions & 2 deletions syncthing-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ func main() {
{
Name: "graph",
Aliases: []string{"g"},
Usage: "create th egraph in syncthing-map.html",
Usage: "create the graph in syncthing-map.html",
Action: func(cCtx *cli.Context) error {
writeGraph("data.json", "syncthing-map-cli.html")
writeGraph("data-cli.json", "syncthing-map-cli.html")
return nil
},
},
Expand Down

0 comments on commit 14ecb67

Please sign in to comment.