Skip to content

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

Description

@richardkhardy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions