Skip to content

Commit

Permalink
docs: document new env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
djmoch committed Dec 9, 2023
1 parent e29abc4 commit 5b31f80
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/shrt
/cmd/shrt/shrt
*.sig
shrt-*.tar.gz
/shrt*/
dist/
12 changes: 11 additions & 1 deletion cmd/shrt/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion cmd/shrt/internal/help/helpdoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ Environment variables:
SHRT_BARERDR
Where requests with an empty path should redirect.
SHRT_DBPATH
The path to the database file.
The absolute path to the database file.
SHRT_GOSOURCEDIR
The string to append to the URL for go-get redirects
to form the directory entry in the go-source meta tag.
This key is experimental and may be removed in a
future release.
SHRT_GOSOURCEFILE
The string to append to the URL for go-get redirects
to form the file entry in the go-source meta tag. This
key is experimental and may be removed in a future
release.
`,
}

0 comments on commit 5b31f80

Please sign in to comment.