You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prompts.Select[armsubscription.TenantIDDescription]("Select the tenant you want to use", tenants, &prompts.SelectOpt[armsubscription.TenantIDDescription]{})
log.Debug("Checking that github cli is installed...")
35
-
ghCmd:=exec.Command("gh")
36
-
_, err:=ghCmd.CombinedOutput()
50
+
_, err:=gh.exec("gh")
37
51
iferr!=nil {
38
52
log.Fatal("Error: The github cli is required to complete this process. Find installation instructions at this link: https://github.com/cli/cli#installation")
39
53
}
40
54
41
55
log.Debug("Github cli found!")
42
56
}
43
57
44
-
funcEnsureGhCliLoggedIn() {
45
-
EnsureGhCliInstalled()
46
-
if!IsLoggedInToGh() {
47
-
iferr:=LogInToGh(); err!=nil {
58
+
func(ghGhCliClient) EnsureGhCliLoggedIn() {
59
+
gh.EnsureGhCliInstalled()
60
+
if!gh.IsLoggedInToGh() {
61
+
iferr:=gh.LogInToGh(); err!=nil {
48
62
log.Fatal("Error: unable to log in to github")
49
63
}
50
64
}
51
65
}
52
66
53
-
funcIsLoggedInToGh() bool {
67
+
func(ghGhCliClient) IsLoggedInToGh() bool {
54
68
log.Debug("Checking that user is logged in to github...")
0 commit comments