Skip to content

Hide sensitive environment variables #2101

Answered by newAM
rgreinho asked this question in Q&A
Discussion options

You must be logged in to vote

This should work:

#[clap(long, env = "GITHUB_TOKEN", setting = ArgSettings::HideEnvValues)]

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@astraw
Comment options

Answer selected by pksunkara
Comment options

You must be logged in to vote
1 reply
@CreepySkeleton
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #2101 on August 24, 2020 06:35.