diff options
| author | KunoiSayami <[email protected]> | 2021-05-17 00:51:00 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2021-05-17 00:51:00 +0800 |
| commit | b4d2a6464200751e0bf818e0d1587a60344c1133 (patch) | |
| tree | 9793f83459e35b242742b4bdf45ebc605ad40927 /README.md | |
| parent | 345197aa4aa148346f14eb3ef1cc76109c9198c4 (diff) | |
refactor(core): Rebuilt the subcommand structurev2.0.0
* refactor(test): Rename mod from core_test to core
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 37 |
1 files changed, 36 insertions, 1 deletions
@@ -25,7 +25,7 @@ cgit-simple-auth-full-protect=true Available options for repositories: -_Should set `cgit-simple-auth-full-protect=false`_ +_You should set `cgit-simple-auth-full-protect=false`_ ```conf repo.url=test @@ -33,6 +33,41 @@ repo.url=test repo.protect=true ``` +## Usage + +You should initialize your database first + +```shell +cargo run -- database init +``` + +Then add user with + +```shell +cargo run -- user add admin hunter2 +``` + +More usage information, see `--help`. + +## Program help + +```plain +Simple Authentication Filter for cgit + +USAGE: + cgit-simple-authentication.exe [SUBCOMMAND] + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +SUBCOMMANDS: + database Database rated commands + repo Repository ACL rated commands + user Users rated commands + help Prints this message or the help of the given subcommand(s) +``` + ## Source Most of the ideas come from: https://github.com/varphone/cgit-gogs-auth-filter |
