When a user tape a command, cli check the rights from index 0, if the method and the right tql match whith command, right is applied, else it check the next rights, and if not found a matching rights, it deny the command
When a user tape a command, cli check the rights from index 0 to the last, if the method and the right tql match whith command, right is applied, else it check the next rights, and if not found a matching rights, it deny the command
.TP
.TP
Example:
Example:
\fB[0] tql: method:* target:allow\fP
\fB[0] tql: method:* target:allow\fP
...
@@ -228,7 +227,6 @@ No output coloration
...
@@ -228,7 +227,6 @@ No output coloration
Deny method list whith tql "id=toto" for account toto in index 0 (deny commands' example: list id=toto, list id:t*, ...)
Deny method list whith tql "id=toto" for account toto in index 0 (deny commands' example: list id=toto, list id:t*, ...)
.SS alias [\fIoptions\fP] [\fIname\fP] [\fIvalue\fP]
.SS alias [\fIoptions\fP] [\fIname\fP] [\fIvalue\fP]
.TP
Show or create alias
Show or create alias
.TP
.TP
CLI support aliasing. This is a very useful command substitution. Alias is stored in \fB~/.config/cc-cli/alias\fP
CLI support aliasing. This is a very useful command substitution. Alias is stored in \fB~/.config/cc-cli/alias\fP
...
@@ -251,7 +249,6 @@ Setting an alias vm, which list running vm (and show cpu)
...
@@ -251,7 +249,6 @@ Setting an alias vm, which list running vm (and show cpu)
Clear tty
Clear tty
.SS close [\fIoptions\fP] \fI<tql>\fP
.SS close [\fIoptions\fP] \fI<tql>\fP
.TP
Disable accounts
Disable accounts
.TP
.TP
\fBOptions:\fP
\fBOptions:\fP
...
@@ -281,7 +278,6 @@ No tagdisplay custom display
...
@@ -281,7 +278,6 @@ No tagdisplay custom display
No output coloration
No output coloration
.SS declose [\fIoptions\fP] \fI<tql>\fP
.SS declose [\fIoptions\fP] \fI<tql>\fP
.TP
Enable accounts
Enable accounts
.TP
.TP
\fBOptions:\fP
\fBOptions:\fP
...
@@ -311,7 +307,6 @@ No tagdisplay custom display
...
@@ -311,7 +307,6 @@ No tagdisplay custom display
No output coloration
No output coloration
.SS delaccount [\fIoptions\fP] \fI<tql>\fP
.SS delaccount [\fIoptions\fP] \fI<tql>\fP
.TP
Delete an account
Delete an account
.TP
.TP
\fBOptions:\fP
\fBOptions:\fP
...
@@ -341,7 +336,6 @@ No tagdisplay custom display
...
@@ -341,7 +336,6 @@ No tagdisplay custom display
No output coloration
No output coloration
.SS delright [\fIoptions\fP] \fI<tql> <index>\fP
.SS delright [\fIoptions\fP] \fI<tql> <index>\fP
.TP
Delete account right
Delete account right
.TP
.TP
...
@@ -393,14 +387,12 @@ Print help
...
@@ -393,14 +387,12 @@ Print help
.SS history
.SS history
.TP
Show commands history
Show commands history
CLI history is stored in \fB~/.local/share/cc-cli/history\fP
CLI history is stored in \fB~/.local/share/cc-cli/history\fP
Migrate vm from host [\fIsource-tql\fP] to another host [\fIdest-tql\fP]. Only \fBcold\fP (the virtual machine stop to execute any currently working program and copy the current page table to the machine where the virtual machine migrate) type migration and \fBfair\fP algorithm are available.
.TP
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
.TP
...
@@ -1040,8 +1038,8 @@ Select migration algorithm
...
@@ -1040,8 +1038,8 @@ Select migration algorithm
.TP
.TP
\fBExample:\fP
\fBExample:\fP
.TP
.TP
\fBmigrate r=vm&p=host1 id=host2\fP
\fBmigrate -t cold -a fair r=vm&p=host1 id=host2\fP