diff --git a/README.md b/README.md index 8fd6697..dcec0c0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/readConfig.go b/readConfig.go index d8d7814..792252f 100644 --- a/readConfig.go +++ b/readConfig.go @@ -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 diff --git a/syncthing-map.go b/syncthing-map.go index 582721c..26519ad 100644 --- a/syncthing-map.go +++ b/syncthing-map.go @@ -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 }, },