biz-a-cli 2.3.25 → 2.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/app.js +3 -0
- package/package.json +1 -1
- package/readme.md +15 -15
- package/tests/app.test.js +11 -0
package/bin/app.js
CHANGED
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -5,28 +5,28 @@
|
|
|
5
5
|
|
|
6
6
|
### a. Using Static IP
|
|
7
7
|
|
|
8
|
-
BizA
|
|
8
|
+
BizA add -s [IP of FINA API] -p [default: 212] -i [dbindex] -d [full or relative path to app folder]
|
|
9
9
|
|
|
10
10
|
Example :
|
|
11
11
|
BizA add -s http://192.168.1.1 -i 2 -d “c:\biza templates\imamatek”
|
|
12
|
-
BizA
|
|
12
|
+
BizA add -s http://192.168.1.1 -p 1205 -i 2 -d “c:\biza templates\imamatek”
|
|
13
13
|
|
|
14
14
|
### b. Using BizA Hub
|
|
15
15
|
|
|
16
|
-
BizA
|
|
16
|
+
BizA add -s [BizA Hub Server] -i [dbindex] --sub [subdomain of BizA Hub Server] -d [full or relative path to app folder]
|
|
17
17
|
|
|
18
18
|
Example :
|
|
19
|
-
BizA
|
|
19
|
+
BizA add -s https://biz-a.hub.com -i 2 –-sub imm -d “c:\biza templates\imamatek”
|
|
20
20
|
|
|
21
21
|
### c. Using Domain / Sub Domain
|
|
22
22
|
|
|
23
|
-
BizA
|
|
23
|
+
BizA add -s [Domain] -i [dbindex] -d [full or relative path to app folder]
|
|
24
24
|
|
|
25
25
|
Example:
|
|
26
|
-
BizA
|
|
26
|
+
BizA add-s https://my.domain.com -i 2 -d “c:\biza templates\imamatek”
|
|
27
27
|
|
|
28
28
|
> [!TIP]
|
|
29
|
-
> BizA
|
|
29
|
+
> BizA add --help
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
BizA remove -s [IP of FINA API] -p [default: 212] -i [dbindex] -n [appname | multiple appname]
|
|
38
38
|
|
|
39
39
|
Example :
|
|
40
|
-
BizA
|
|
41
|
-
BizA
|
|
42
|
-
BizA
|
|
40
|
+
BizA remove -s http://192.168.1.1 -i 2
|
|
41
|
+
BizA remove -s http://192.168.1.1 -p 1205 -i 2 -n “imamatek”
|
|
42
|
+
BizA remove -s http://192.168.1.1 -p 1205 -i 2 -n “imamatek, spos”
|
|
43
43
|
|
|
44
44
|
### b. Using BizA Hub
|
|
45
45
|
|
|
46
|
-
BizA
|
|
46
|
+
BizA remove -s [BizA Hub Server] -i [dbindex] --sub [subdomain of BizA Hub Server] -n [appname | multiple appname]
|
|
47
47
|
|
|
48
48
|
Example :
|
|
49
|
-
BizA
|
|
49
|
+
BizA remove -s https://biz-a.hub.com -i 2 –sub imm -n “imamatek”
|
|
50
50
|
|
|
51
51
|
### c. Using Domain / Sub Domain
|
|
52
52
|
|
|
53
|
-
BizA
|
|
53
|
+
BizA remove -s [Domain] -i [dbindex] -n [appname | multiple appname]
|
|
54
54
|
|
|
55
55
|
Example:
|
|
56
|
-
BizA
|
|
56
|
+
BizA remove -s https://my.domain.com -i 2 -n “imamatek”
|
|
57
57
|
|
|
58
58
|
> [!TIP]
|
|
59
|
-
> BizA
|
|
59
|
+
> BizA remove --help
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
package/tests/app.test.js
CHANGED
|
@@ -344,6 +344,17 @@ describe('Biz-A Apps CLI', ()=>{
|
|
|
344
344
|
expect(errorSpy.mock.calls[0][0]).toBe('Nothing to upload. Please recheck your app folder.')
|
|
345
345
|
})
|
|
346
346
|
|
|
347
|
+
it.only('Shall use lowercase letters for commands', async ()=>{
|
|
348
|
+
mockValidTemplates({})
|
|
349
|
+
mockIssuerKeyResponse()
|
|
350
|
+
await runCommand('Add', '-s', 'https://a.b.c', '-p', '1205', '-i', '2', '-d', appFolderName, "-v")
|
|
351
|
+
|
|
352
|
+
expect(logSpy.mock.calls.length).toBe(0)
|
|
353
|
+
|
|
354
|
+
expect(errorSpy.mock.calls.length).toBe(1)
|
|
355
|
+
expect(errorSpy.mock.calls[0][0]).toBe('Command not found. Please make sure the commands use all lowercase letters.')
|
|
356
|
+
})
|
|
357
|
+
|
|
347
358
|
})
|
|
348
359
|
|
|
349
360
|
describe('Remove App', ()=>{
|