You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sites/bin/cec/cec.js
+85-4
Original file line number
Diff line number
Diff line change
@@ -1427,7 +1427,7 @@ const describeTaxonomy = {
1427
1427
usage: {
1428
1428
'short': 'Lists the properties of a taxonomy on OCM server.',
1429
1429
'long': (function () {
1430
-
let desc = 'Lists the properties of a taxonomy on OCM server. Optionally specify the taxonomy id with -i <id> if another taxonomy has the same name. Optionally specify -f <file> to save the properties to a JSON file. Specify the server with -s <server> or use the one specified in cec.properties file. ';
1430
+
let desc = 'Lists the properties of a taxonomy on OCM server. Specify the taxonomy with -t <taxonomy>. Optionally specify the taxonomy id with -i <id> if another taxonomy has the same name. Optionally specify -f <file> to save the properties to a JSON file. Specify the server with -s <server> or use the one specified in cec.properties file. ';
1431
1431
return desc;
1432
1432
})()
1433
1433
},
@@ -1438,6 +1438,24 @@ const describeTaxonomy = {
1438
1438
]
1439
1439
};
1440
1440
1441
+
const describeCategory = {
1442
+
command: 'describe-category <apiname>',
1443
+
alias: 'dsct',
1444
+
name: 'describe-category',
1445
+
usage: {
1446
+
'short': 'Lists the properties of a taxonomy\'s category on OCM server.',
1447
+
'long': (function () {
1448
+
let desc = 'Lists the properties of a taxonomy\'s category on OCM server. Optionally specify -f <file> to save the properties to a JSON file. Specify the server with -s <server> or use the one specified in cec.properties file. ';
['cec set-site-security Site1 -s no -r SampleServer1', 'make the site publicly available to anyone on server SampleServer1'],
1956
1974
['cec set-site-security Site1 -s yes', 'Require everyone to sign in to access this site and any authenticated user can access'],
1957
1975
['cec set-site-security Site1 -s yes -a "Visitors,Service users"', 'Require everyone to sign in to access this site and all service visitors and users can access'],
1958
-
['cec set-site-security Site1 -s yes -a "Specific users" -u user1,user2', 'Require everyone to sign in to access this site and only user1and user2 can access'],
1959
-
['cec set-site-security Site1 -s yes -d user1', 'Remove user1\'s access from the site']
1976
+
['cec set-site-security Site1 -s yes -a "Specific users" -u user1,user2, -g group1,group2', 'Require everyone to sign in to access this site and only user1, user2, group1 and group2 can access'],
1977
+
['cec set-site-security Site1 -s yes -d user1 -o group1', 'Remove the access of user1 and group1 from the site']
0 commit comments