cli/pkg/cmd/auth
Eng Zer Jun 471cbea4fa
test: use t.Setenv to set env vars in tests (#6333)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-09-26 08:46:02 +00:00
..
gitcredential Use go-gh config package (#5771) 2022-06-23 11:50:04 +00:00
login test: use t.Setenv to set env vars in tests (#6333) 2022-09-26 08:46:02 +00:00
logout fix typo 2022-09-20 12:11:36 -07:00
refresh use Prompter in auth commands 2022-09-13 13:22:50 -07:00
setupgit Use go-gh config package (#5771) 2022-06-23 11:50:04 +00:00
shared use Prompter in auth commands 2022-09-13 13:22:50 -07:00
status Use go-gh config package (#5771) 2022-06-23 11:50:04 +00:00
auth.go Add note about git auth 2022-02-21 15:24:54 +01:00