2023-08-15 17:34:45 +02:00
|
|
|
# Command history
|
|
|
|
|
|
|
|
Commands were run in the order listed below on a debian based system.
|
|
|
|
|
|
|
|
## Initial setup
|
|
|
|
|
|
|
|
- Initialize go module
|
|
|
|
```bash
|
|
|
|
go mod init somepi.ddns.net/gitea/gilex-dev/YetAnotherToDoList
|
|
|
|
```
|
|
|
|
- Install cobra-cli (try `~/go/bin/cobra-cli` if `cobra-cli` can not be found in your `PATH`)
|
|
|
|
|
|
|
|
```bash
|
|
|
|
go install github.com/spf13/cobra-cli@latest
|
|
|
|
cobra-cli init --viper --license gpl-3.0 --author "gilex-dev gilex-dev@proton.me"
|
|
|
|
```
|
|
|
|
|
|
|
|
- Add missing modules
|
|
|
|
```bash
|
|
|
|
go mod tidy
|
|
|
|
```
|
2023-08-19 20:35:29 +02:00
|
|
|
- Add license command
|
|
|
|
```bash
|
|
|
|
cobra-cli add license
|
|
|
|
```
|