diff --git a/README.md b/README.md index d6e74da..0ef1990 100644 --- a/README.md +++ b/README.md @@ -3,20 +3,33 @@ open an age encrypted file in $EDITOR ## cli -`go install git.burning.moe/celediel/agedit@latest` +`go install git.burning.moe/celediel/agedit/cmd/agedit@latest` `agedit [flags] filename` ### flags -``` --identity value, -i value age identity file to use - --out value, -o value Write to this file instead of the input file +```text + --identity value, -i value age identity file to use + --out value, -o value write to this file instead of the input file --log value, -l value log level (default: "warn") + --editor value, -e value specify the editor to use --help, -h show help --version, -v print the version ``` ## library -`go get git.burning.moe/celediel/agedit@latest` + +for environmental variable loading: +`go get git.burning.moe/celediel/agedit/pkg/env@latest` + +for opening files with editor: +`go get git.burning.moe/celediel/agedit/pkg/editor@latest` + +for encrypting files: +`go get git.burning.moe/celediel/agedit/pkg/encrypt@latest` + +for generating temporary filenames: +`go get git.burning.moe/celediel/agedit/pkg/tmpfile@latest` See `./cmd/agedit/agedit.go` for example usage.