Skip to content

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

@richardkhardy

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.

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