2023-10-10 22:26:07 +02:00
---
gitea: none
include_toc: true
---
2023-09-15 23:45:28 +02:00
# Install YetAnotherToDoList
2023-10-10 22:26:07 +02:00
## Requirements:
- go 1.21.1 (not tested, but _should_ also work in all versions since 1.16)
- gcc 4.6+ (according to the [golang wiki ](https://github.com/golang/go/wiki/MinimumRequirements#cgo ))
2023-09-15 23:45:28 +02:00
## Install via `go install`
2023-10-10 22:26:07 +02:00
When installing via this method, no commit & version information is provided.
2023-09-15 23:45:28 +02:00
```bash
go install somepi.ddns.net/gitea/gilex-dev/YetAnotherToDoList@latest
```
2023-10-10 22:26:07 +02:00
You can specify the installation location by adding `GOBIN=<installation directory>`
2023-09-15 23:45:28 +02:00
2023-10-10 22:26:07 +02:00
## Install from git repository (Recommended)
2023-09-15 23:45:28 +02:00
2023-10-10 22:26:07 +02:00
In addition to the [requirements ](#requirements ), you will need `git` and `GNU make`
2023-09-15 23:45:28 +02:00
```bash
git clone https://somepi.ddns.net/gitea/gilex-dev/YetAnotherToDoList.git
cd YetAnotherToDoList
2023-10-10 22:26:07 +02:00
go mod tidy # only if you want to edit the GraphQL backend
2023-09-15 23:45:28 +02:00
make build
```
2023-10-10 22:26:07 +02:00
To customize your build, you can run `make` with these environment variables:
2023-09-15 23:45:28 +02:00
```
INSTALL_DIR=< installation directory >
BUILD_FLAGS=< go build flags >
RUN_FLAGS=< cli arguments for YetAnotherToDoList >
```
## Install from pre-build binary
There are currently no pre-build binaries available
2023-10-10 22:26:07 +02:00
## Troubleshooting
If you get an error like `Unable to connect: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub` , make sure `gcc` is installed and in your `PATH` .
If this still does not work, try
```bash
CGO_ENABLED=1 go install github.com/mattn/go-sqlite3
```
## Post install
### Add shell completion
2023-09-15 23:45:28 +02:00
YetAnotherToDoList must be in your `PATH` for this to work.
2023-10-10 22:26:07 +02:00
#### Bash
2023-09-15 23:45:28 +02:00
```bash
source < (YetAnotherToDoList completion bash)
```
2023-10-10 22:26:07 +02:00
For other shells or more info, see
```bash
YetAnotherToDoList help completion < bash | zsh | fish | powershell >
```
### Configuration
Edit the file [.YetAnotherToDoList.yaml ](./.YetAnotherToDoList.yaml ) and run `YetAnotherToDoList help` for options.
2023-09-15 23:45:28 +02:00
## Uninstall
Run `make uninstall` or
```bash
rm $HOME/.local/bin/YetAnotherToDoList # replace with your installation path
```
2023-10-10 22:26:07 +02:00
Don't forget to delete the `.log` , `.yaml` and `.sqlite3` files if you don't need them any more.
2023-09-15 23:45:28 +02:00
### Remove shell completion
#### Bash
```bash
complete -r YetAnotherToDoList
```