You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using option group to organize 2 properties with cooccuring feature. Options inside has envvar defined.
The problem is that env variable is not used to resolve option. This works properly for plain options that are defined without option group
privateclassUserCreds : OptionGroup("Confluence user credentials") {
val confluenceUser:String by option("--user", envvar ="CONFLUENCE_USER").required()
val confluencePassword:String? by option(
"--password",
envvar ="CONFLUENCE_PASSWORD",
help ="User password or personal API token provided instead of password (e.g. in Confluence Cloud)"
)
}
classUpload : CliktCommand(name = "upload", help = "Converts source files and uploads them to confluence") {
privateval confluenceUrl:Url? by option(
"--confluence-url", envvar ="CONFLUENCE_URL",
help ="Address of confluence server. For Confluence cloud it is usually https://<site>.atlassian.net/wiki"
).convert { Url(it) }
privateval userCreds:UserCreds? by UserCreds().cooccurring()
....
In this example CONFLUENCE_URL is propertly resolved, while CONFLUENCE_USER is ignored
The text was updated successfully, but these errors were encountered:
I'm using option group to organize 2 properties with cooccuring feature. Options inside has envvar defined.
The problem is that env variable is not used to resolve option. This works properly for plain options that are defined without option group
In this example
CONFLUENCE_URL
is propertly resolved, whileCONFLUENCE_USER
is ignoredThe text was updated successfully, but these errors were encountered: