Improves README & Help menu

This commit is contained in:
HorlogeSkynet 2017-04-10 14:09:56 +02:00
parent e178109015
commit 200c06ca5b
2 changed files with 28 additions and 17 deletions

@ -31,23 +31,32 @@ A Cooperative Medical System
> You can play (at the moment) with these commands:
`% help`
`% clear`
`% cd [PATH]`
`% vim [FILE]`
`% view [FILE]`
`% rm [-r] FILE`
`% ls [-l] [PATH]`
`% mkdir [-p] FILE`
`% mv OLD_PATH NEW_PATH`
`% cp [-r] SRC_PATH DST_PATH`
`% owner FILE NEW_OWNER`
`% adduser USER`
`% removeuser USER`
`% addusergroup USER GROUP`
`% removeusergroup USER GROUP`
`% passwd [USER]`
* Regular users:
`% help`
`% clear`
`% passwd`
`% groups`
`% cd [PATH]`
`% vim [FILE]`
`% view [FILE]`
`% rm [-r] FILE`
`% ls [-l] [PATH]`
`% mkdir [-p] FILE`
`% mv OLD_PATH NEW_PATH`
`% cp [-r] SRC_PATH DST_PATH`
`% owner FILE NEW_OWNER`
* Admin users:
`% adduser USER`
`% passwd [USER]`
`% addgroup GROUP`
`% delgroup GROUP`
`% removeuser USER`
`% addusergroup USER GROUP`
`% removeusergroup USER GROUP`
#### Resources & Acknowledgments

@ -34,8 +34,10 @@ def helpMan(admin):
result += "\tpasswd [USER]: Changes the password of an user (or yours without any argument)\n"
result += "\tadduser USER: Creates a new user\n"
result += "\tremoveuser USER: Removes an existing user\n"
result += "\taddgroup GROUP: Creates a new empty group\n"
result += "\tdelgroup GROUP: Removes an empty group (other than `administrator`)\n"
result += "\taddusergroup USER GROUP: Sets an user in a group (and creates it if it does not exist yet)\n"
result += "\tremoveusergroup USER GROUP: Unsets an user from a group\n"
result += "\tremoveusergroup USER GROUP: Unsets an user from a group (other than `admin`)\n"
else:
result += "\tgroups: Displays the ACMS groups you are member of\n"