Update help texts

This commit is contained in:
Tim Schubert 2023-05-29 00:19:27 +02:00
parent 71d3bc8dcc
commit 90354265a0
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 11 additions and 5 deletions

View file

@ -37,3 +37,9 @@ Archive pads:
## As a GitHub action
*TODO*
## Using Container Image
```shell
podman run --rm --mount type=bind,source=./.,destination=/repo -i --workdir /repo ghcr.io/dadada/pad-archiver < pads.txt
```

10
main.go
View file

@ -142,27 +142,27 @@ func main() {
gitdir := flag.String(
"C",
cwd,
"git directory",
"The directory containing the git repository in which to archive the pads.",
)
doPush := flag.Bool(
"push",
false,
"push repository to remote",
"Push the changes to the remote specified by remoteUrl",
)
username := flag.String(
"username",
"",
"username",
"The username for authenticating to the remote.",
)
password := flag.String(
"password",
os.Getenv("GIT_PASSWORD"),
"password",
"The password for authenticating to the remote. Can also be specified via the environment variable GIT_PASSWORD.",
)
remoteUrl := flag.String(
"url",
"",
"url of remote",
"URL to push changes to.",
)
flag.Parse()