Skip to content

Commit 3121e52

Browse files
committed
Fix: updated incorrect info screen for permission editing
1 parent cf9add6 commit 3121e52

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/shell/commands/perms.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export default class PermsCommand extends SolidCommand {
1818
.argument('<operation>', 'list, edit, delete')
1919
.argument('<url>', 'Resource URL')
2020
.argument('[permissions...]', `Permission operations to edit resource permissions.
21-
Formatted according to <id>=[d][g][a][c][r][w].
22-
For public permissions please set <id> to "p".
23-
For the current authenticated user please set <id> to "u".
24-
To set updated permissions as default, please add the [d] option as follows: <id>=d[g][a][c][r][w]
25-
To indicate the id as a group id, please add the [g] option as follows: <id>=g[d][a][c][r][w]
21+
Formatted according to id=[d][g][a][c][r][w].
22+
For public permissions please set id to "p".
23+
For the current authenticated user please set id to "u".
24+
To set updated permissions as default, please add the [d] option as follows: id=d[g][a][c][r][w]
25+
To indicate the id as a group id, please add the [g] option as follows: id=g[d][a][c][r][w]
2626
`)
2727
.option('-p, --pretty', 'Pretty format')
2828
.option('-v, --verbose', 'Log all operations') // Should this be default?
@@ -34,11 +34,11 @@ export default class PermsCommand extends SolidCommand {
3434
.argument('<operation>', 'list, edit, delete')
3535
.argument('<url>', 'Resource URL')
3636
.argument('[permissions...]', `Permission operations to edit resource permissions.
37-
Formatted according to <id>=[d][g][a][c][r][w].
38-
For public permissions please set <id> to "p".
39-
For the current authenticated user please set <id> to "u".
40-
To set updated permissions as default, please add the [d] option as follows: <id>=d[g][a][c][r][w]
41-
To indicate the id as a group id, please add the [g] option as follows: <id>=g[d][a][c][r][w]
37+
Formatted according to id=[d][g][a][c][r][w].
38+
For public permissions please set id to "p".
39+
For the current authenticated user please set id to "u".
40+
To set updated permissions as default, please add the [d] option as follows: id=d[g][a][c][r][w]
41+
To indicate the id as a group id, please add the [g] option as follows: id=g[d][a][c][r][w]
4242
`)
4343
.option('-p, --pretty', 'Pretty format')
4444
.option('-v, --verbose', 'Log all operations') // Should this be default?
@@ -62,7 +62,7 @@ export default class PermsCommand extends SolidCommand {
6262
let parsedPermissions = permissions.map(permission => {
6363
const splitPerm = permission.split('=')
6464
if (! (splitPerm.length === 2)) {
65-
writeErrorString('Incorrect permission format.', 'Please format your permissions as <id>=[d][a][c][r][w].', options)
65+
writeErrorString('Incorrect permission format.', 'Please format your permissions as id=[d][a][c][r][w].', options)
6666
process.exit(0)
6767
}
6868
let id = splitPerm[0]

0 commit comments

Comments
 (0)