diff --git a/README.md b/README.md index f5a7cc5..8d5fbda 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/main.go b/main.go index 16372a5..e64e4a2 100644 --- a/main.go +++ b/main.go @@ -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()