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 ## As a GitHub action
*TODO* *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( gitdir := flag.String(
"C", "C",
cwd, cwd,
"git directory", "The directory containing the git repository in which to archive the pads.",
) )
doPush := flag.Bool( doPush := flag.Bool(
"push", "push",
false, false,
"push repository to remote", "Push the changes to the remote specified by remoteUrl",
) )
username := flag.String( username := flag.String(
"username", "username",
"", "",
"username", "The username for authenticating to the remote.",
) )
password := flag.String( password := flag.String(
"password", "password",
os.Getenv("GIT_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( remoteUrl := flag.String(
"url", "url",
"", "",
"url of remote", "URL to push changes to.",
) )
flag.Parse() flag.Parse()