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
Example:
\fB[0] tql: method:* target:allow\fP
...
...
@@ -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*, ...)
.SS alias [\fIoptions\fP] [\fIname\fP] [\fIvalue\fP]
.TP
Show or create alias
.TP
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)
Clear tty
.SS close [\fIoptions\fP] \fI<tql>\fP
.TP
Disable accounts
.TP
\fBOptions:\fP
...
...
@@ -281,7 +278,6 @@ No tagdisplay custom display
No output coloration
.SS declose [\fIoptions\fP] \fI<tql>\fP
.TP
Enable accounts
.TP
\fBOptions:\fP
...
...
@@ -311,7 +307,6 @@ No tagdisplay custom display
No output coloration
.SS delaccount [\fIoptions\fP] \fI<tql>\fP
.TP
Delete an account
.TP
\fBOptions:\fP
...
...
@@ -341,7 +336,6 @@ No tagdisplay custom display
No output coloration
.SS delright [\fIoptions\fP] \fI<tql> <index>\fP
.TP
Delete account right
.TP
...
...
@@ -393,14 +387,12 @@ Print help
.SS history
.TP
Show commands history
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
\fBOptions:\fP
.TP
...
...
@@ -1040,8 +1038,8 @@ Select migration algorithm
.TP
\fBExample:\fP
.TP
\fBmigrate r=vm&p=host1 id=host2\fP
Migrate all vm in host1 to host2
\fBmigrate -t cold -a fair r=vm&p=host1 id=host2\fP