aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2021-05-04 17:08:33 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2021-05-04 17:08:33 +0100
commit47415cc7e9ff17016264982ce3d7de3fd907dba7 (patch)
tree55bf003294f1669a74dfaa995371582e76a6c1b7 /datamaps
parent4457cd61f10565c5fa1abafc5e763fb676c4293f (diff)
fixed problem of repeating Setup() procedure
Diffstat (limited to '')
-rw-r--r--datamaps/config.go7
-rwxr-xr-xdatamaps/mainbin13848736 -> 0 bytes
2 files changed, 6 insertions, 1 deletions
diff --git a/datamaps/config.go b/datamaps/config.go
index ec6f91e..590e07d 100644
--- a/datamaps/config.go
+++ b/datamaps/config.go
@@ -15,6 +15,10 @@ const (
const Usage = `
usage: datamaps COMMAND [OPTIONS]
+datamaps will NOT create configuration files automatically. Ensure this is handled by
+calling: "datamaps setup". This will create the database file required to run the
+application.
+
-Managing datamap files-
Command: datamap
@@ -62,6 +66,7 @@ func NewDBPathChecker(h getUserConfigDir) *DBPathChecker {
// Check returns true if the necessary config files (including
// the database) are in place - false if not
func (db *DBPathChecker) Check() bool {
+ println("In Check() method")
userConfig, err := db.userConfig()
if err != nil {
log.Fatal(err)
@@ -216,7 +221,7 @@ func nextString(args []string, i *int, message string) string {
func processOptions(opts *Options, allArgs []string) {
if len(allArgs) == 0 {
- allArgs = append(allArgs, "help")
+ allArgs = append(allArgs, "checkdb")
}
switch allArgs[0] {
case "import":
diff --git a/datamaps/main b/datamaps/main
deleted file mode 100755
index a781830..0000000
--- a/datamaps/main
+++ /dev/null
Binary files differ