Add docs for configuration

This commit is contained in:
Elara 2022-09-30 13:10:27 -07:00
parent c18d1440c3
commit 3cf1e7f513
2 changed files with 35 additions and 1 deletions

View File

@ -2,3 +2,4 @@
- [Build Scripts](build-scripts.md)
- [Usage](usage.md)
- [Configuration](configuration.md)

33
docs/configuration.md Normal file
View File

@ -0,0 +1,33 @@
# Configuration
This page describes the configuration of LURE
---
## Table of Contents
- [Config file](#config-file)
- [rootCmd](#rootcmd)
- [repo](#repo)
---
## Config file
### rootCmd
The `rootCmd` field in the config specifies which command should be used for privilege elevation. The default value is `sudo`.
### repo
The `repo` array in the config specifies which repos are added to LURE. Each repo must have a name and URL. A repo looks like this in the config:
```toml
[[repo]]
name = 'default'
url = 'https://github.com/Arsen6331/lure-repo.git'
```
The `default` repo is added by default. Any amount of repos may be added.
---