Commit graph

665 commits

Author SHA1 Message Date
William Martin
f808dcee62 Expose CacheDir on Config 2024-04-05 14:58:12 +02:00
cuinix
6091e7ad5b remove repetitive word
Signed-off-by: cuinix <915115094@qq.com>
2024-03-06 23:30:00 +08:00
Bartek Pacia
32eeb63a85
redirect users to the gh environment command 2024-02-27 10:41:03 +01:00
Bartek Pacia
5d72e17246
Revert "make comments in the default config file more informative"
This reverts commit ef96b447d7.
2024-02-27 10:33:15 +01:00
Bartek Pacia
ef96b447d7
make comments in the default config file more informative 2024-02-25 23:43:58 +01:00
Zack Sloane
15166f485a
Merge branch 'cli:trunk' into trunk 2024-02-01 16:27:12 -05:00
David Gardiner
2cb044caf5 Parse SSH args before creating the shell 2024-01-30 13:16:46 -08:00
David Gardiner
8c77e53c35 Send activity signals during non-interactive codespace SSH command 2024-01-29 19:20:51 -08:00
Zack Sloane
3339e62666
Merge branch 'cli:trunk' into trunk 2024-01-24 12:42:25 -05:00
Frederic Pillon
55d251ac51 Fix some typos raised by codespell
With .codespellignore containing:
aline
commitish
messag
noes
nwo
parth
prfiles
runn
timere
ue
welp

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2024-01-17 15:34:49 +01:00
Zack Sloane
b6dadfa7fb test update, more consistent default value display 2024-01-08 23:23:24 -05:00
Zack Sloane
b9e261c34a
Merge branch 'cli:trunk' into trunk 2024-01-05 21:59:32 -05:00
Sam Coe
52fb3b62b3
Update multi-account migration error msg (#8448)
* Make sure default host is stubbed out for all auth login tests

* Improve multi-account migration error message
2023-12-11 15:20:23 +00:00
Sam Coe
024cb939af Rename authCfg.Token to authCfg.ActiveToken and authCfg.SetToken to authCfg.SetActiveToken 2023-12-06 14:06:28 +01:00
Sam Coe
1a3392a379 Rename authCfg.User to authCfg.ActiveUser 2023-12-06 14:06:28 +01:00
Sam Coe
8cdbc1a8ca Refactor authCfg.UsersForHost to not return an error 2023-12-06 14:06:28 +01:00
William Martin
af8bcd3ed2 Print useful error when switch fails outside user control 2023-12-06 14:06:28 +01:00
William Martin
4e04b98f6f Add user flag to auth token command 2023-12-06 14:06:28 +01:00
William Martin
7106129f65 Restore previous happy state on Switch failure 2023-12-06 14:06:28 +01:00
William Martin
ecfb226d5d Fix linting errors 2023-12-06 14:06:28 +01:00
William Martin
8d53c9e55e Only migrate oauth token under new user 2023-12-06 14:06:28 +01:00
William Martin
ab5103f061 Don't set user level git protocol and don't switch 2023-12-06 14:06:28 +01:00
William Martin
553b89f30c Add tests for AuthConfig TokenForUser 2023-12-06 14:06:28 +01:00
William Martin
c9a6b7cc00 Always mock the keyring in NewIsolatedTestConfig 2023-12-06 14:06:28 +01:00
William Martin
8e89af96e8 Write tests for SwitchUser 2023-12-06 14:06:28 +01:00
William Martin
a0e5e4c709 Use NewIsolatedTestConfig in AuthConfig tests 2023-12-06 14:06:28 +01:00
Sam Coe
760dc91faa Include environment variable users in auth status output 2023-12-06 14:06:28 +01:00
William Martin
e4ed4041cd Use auth config and only print stdout in status 2023-12-06 14:06:28 +01:00
Sam Coe
eca5f72328 UX polish and standardization of language 2023-12-06 14:06:28 +01:00
William Martin
df274d4f3a Implement auth switch 2023-12-06 14:06:28 +01:00
William Martin
72d5550407 Implemented auth logout for multiaccount 2023-12-06 14:06:28 +01:00
William Martin
1bf6023164 Display message when logging into existing account 2023-12-06 14:06:28 +01:00
William Martin
a9acece7dd Split Login into adding a user and switching
It makes clear the steps that should be needed to "switch" which should be
shared between Login (add user and switch to it), Logout (remove user and switch
to another), and Switch (no modification and switch to a user)
2023-12-06 14:06:28 +01:00
William Martin
209aed30b4 Fix typo on migration comment 2023-12-06 14:06:28 +01:00
William Martin
a00294eff9 Fix double negatives in migration errors 2023-12-06 14:06:28 +01:00
William Martin
06c36a74c2 Remove host entries without valid tokens during migration 2023-12-06 14:06:28 +01:00
Sam Coe
4f33d88c5f Set user level config values automatically when setting host level config values 2023-12-06 14:06:28 +01:00
Sam Coe
38b73e3f85 Set host level git_protocol on login 2023-12-06 14:06:28 +01:00
Sam Coe
eb771aecc9 Address PR comments 2023-12-06 14:06:28 +01:00
Sam Coe
d2ff55737c Enable multi-account migration 2023-12-06 14:06:28 +01:00
Sam Coe
68e30beac4 Logout removes token from keyring using username 2023-12-06 14:06:28 +01:00
Sam Coe
2ca8b1ea94 Login sets token in keyring using username 2023-12-06 14:06:28 +01:00
Sam Coe
d8084f5f6d Hide all keyring package implementation inside internal keyring package 2023-12-06 14:06:28 +01:00
Sam Coe
e0ebbc9e88 Add auth token migration to multi account migration 2023-12-06 14:06:28 +01:00
William Martin
9efa7248a9 Initial multi-account migration work 2023-12-06 14:06:28 +01:00
Zack Sloane
857cd49040 fix special cases for duration flags 2023-12-05 23:33:01 -05:00
Zack Sloane
92cb2cc78d more closely match cobra default val display 2023-12-05 22:21:53 -05:00
Zack Sloane
aae4a00769 Add default values to docs (web and man pages) 2023-11-30 16:28:51 -05:00
David Gardiner
d22c6f33e9 Update comment 2023-10-31 13:12:25 -07:00
David Gardiner
d04a9d941f Lock the Close func 2023-10-31 13:11:28 -07:00