Browse Source

fix up paths

Kieran Gibb 1 year ago
parent
commit
5c33bbec04
No known key found for this signature in database

+ 4
- 4
cobox-cli/bin/groups/create.js View File

@@ -1,13 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4 5
   onSuccess,
5 6
   onError,
6
-  getInput,
7
-  printGroups,
8
-} = require('../../lib/bin/util')
7
+  printGroups
8
+} = require('../../util')
9 9
 
10
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
11 11
 
12 12
 exports.command = 'create'
13 13
 exports.desc = 'create a new group'

+ 4
- 4
cobox-cli/bin/groups/join.js View File

@@ -1,13 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4 5
   onSuccess,
5 6
   onError,
6
-  getInput,
7
-  printGroups,
8
-} = require('../../lib/bin/util')
7
+  printGroups
8
+} = require('../../util')
9 9
 
10
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
11 11
 
12 12
 exports.command = 'join'
13 13
 exports.desc = 'join a group'

+ 4
- 3
cobox-cli/bin/groups/leave.js View File

@@ -1,12 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4
-  onError,
5 5
   onSuccess,
6
+  onError,
6 7
   printGroups
7
-} = require('../../lib/bin/util')
8
+} = require('../../util')
8 9
 
9
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
10 11
 
11 12
 exports.command = 'leave'
12 13
 exports.desc = 'drop open connections with remote peers'

+ 5
- 3
cobox-cli/bin/groups/list.js View File

@@ -1,11 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
5
+  onSuccess,
4 6
   onError,
5
-  printGroups,
6
-} = require('../../lib/bin/util')
7
+  printGroups
8
+} = require('../../util')
7 9
 
8
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
9 11
 
10 12
 exports.command = 'list'
11 13
 exports.desc = 'list all groups'

+ 4
- 3
cobox-cli/bin/groups/mount.js View File

@@ -1,12 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4 5
   onSuccess,
5 6
   onError,
6
-  printGroups,
7
-} = require('../../lib/bin/util')
7
+  printGroups
8
+} = require('../../util')
8 9
 
9
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
10 11
 
11 12
 exports.command = 'mount'
12 13
 exports.desc = "mount a group"

+ 4
- 3
cobox-cli/bin/groups/unmount.js View File

@@ -1,12 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4
-  onError,
5 5
   onSuccess,
6
+  onError,
6 7
   printGroups
7
-} = require('../../lib/bin/util')
8
+} = require('../../util')
8 9
 
9
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
10 11
 
11 12
 exports.command = 'unmount'
12 13
 exports.desc = "unmount a group"

+ 4
- 4
cobox-cli/bin/replicators/join.js View File

@@ -1,13 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4 5
   onSuccess,
5 6
   onError,
6
-  getInput,
7
-  printGroups,
8
-} = require('../../lib/bin/util')
7
+  printGroups
8
+} = require('../../util')
9 9
 
10
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
11 11
 
12 12
 exports.command = 'join'
13 13
 exports.desc = 'join on an address as a blind replicator'

+ 4
- 3
cobox-cli/bin/replicators/leave.js View File

@@ -1,12 +1,13 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4
-  onError,
5 5
   onSuccess,
6
+  onError,
6 7
   printGroups
7
-} = require('../../lib/bin/util')
8
+} = require('../../util')
8 9
 
9
-const request = require('../../lib/bin/request')
10
+const request = require('../../request')
10 11
 
11 12
 exports.command = 'leave'
12 13
 exports.desc = 'drop open connections with remote peers'

+ 4
- 3
cobox-cli/bin/replicators/list.js View File

@@ -1,11 +1,12 @@
1 1
 const chalk = require('chalk')
2 2
 const path = require('path')
3
+
3 4
 const {
4 5
   onError,
5
-  printGroups,
6
-} = require('../../lib/bin/util')
6
+  printGroups
7
+} = require('../../util')
7 8
 
8
-const request = require('../../lib/bin/request')
9
+const request = require('../../request')
9 10
 
10 11
 exports.command = 'list'
11 12
 exports.desc = 'list all local blind replicators'