Dec
4
1 day ago
Activity icon
created tag

alecthomas in alecthomas/kong create tag v0.2.20

createdAt 8 hours ago
Activity icon
issue

mitar issue comment alecthomas/kong

mitar
mitar

Do not add environment variable to help it is already present

Fixes #246.

mitar
mitar

Superb!

Care to make a release with those recent fixes?

And, BTW, I really love this package. It is really smooth. Thank you for it!

Activity icon
issue

alecthomas issue comment alecthomas/kong

alecthomas
alecthomas

Do not add environment variable to help it is already present

Fixes #246.

push

alecthomas push alecthomas/kong

alecthomas
alecthomas

Do not add environment variable to help it is already present.

Fixes #246.

commit sha: deebf0b09b7bdda61ec299ab90aaaa341436dd4b

push time in 9 hours ago
pull request

alecthomas pull request alecthomas/kong

alecthomas
alecthomas

Do not add environment variable to help it is already present

Fixes #246.

Activity icon
issue

alecthomas issue alecthomas/kong

alecthomas
alecthomas

Default help formatter appends environment variable even when ${env} is inside the help string

I have the following structure:

type Config struct {
	Project   string `short:"p" env:"CI_PROJECT_ID" help:"Environment variable: ${env}"`
}

And the help message I get is:

Environment variable: CI_PROJECT_ID ($CI_PROJECT_ID)

But I would expect it to be:

Environment variable: CI_PROJECT_ID

This issue is a followup to #244.

pull request

alecthomas merge to alecthomas/kong

alecthomas
alecthomas

Do not add environment variable to help it is already present

Fixes #246.

Activity icon
issue

mitar issue comment alecthomas/kong

mitar
mitar

Do not add environment variable to help it is already present

Fixes #246.

mitar
mitar

Updated it as requested.

push

alecthomas push alecthomas/kong

alecthomas
alecthomas

Support $$ for escaping $ in interpolated values.

Fixes #248

commit sha: 32b2f740c921ebddcf8abe1a9f3ce781c25c93c2

push time in 19 hours ago
Activity icon
issue

alecthomas issue alecthomas/kong

alecthomas
alecthomas

Allow escaping $ inside a help string

So that one can use $${env} to get ${env} printed out.

Previous