Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the config add --stdio option to work #48

Open
richardkhardy opened this issue Mar 18, 2024 · 0 comments
Open

Can't get the config add --stdio option to work #48

richardkhardy opened this issue Mar 18, 2024 · 0 comments

Comments

@richardkhardy
Copy link

totp config add --stdio name value always uses the $HOME/.totp-config.json file for me. I needed to change in root.go

if cmd.Flags().Lookup(optionStdio) != nil {
         if cfg.useStdio {

to

if cmd.Flags().Lookup(optionStdio) != nil {
	if  cmd.Flags().Changed(optionStdio)  {

to get it to work. cfg.useStdio is always false. It looks like configupdate.go / getConfigUpdateCmd() is where the problem lies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant