Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Commit

Permalink
use github.com/scmn-dev/secman/cluster & `github.com/Timothee-Cardo…
Browse files Browse the repository at this point in the history
…so/tc-exe` packages
  • Loading branch information
abdfnx committed Sep 1, 2021
1 parent cc86821 commit 3e25c3c
Show file tree
Hide file tree
Showing 57 changed files with 274 additions and 2,672 deletions.
2 changes: 1 addition & 1 deletion api/queries_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type Repository struct {
IsMirror bool
IsPrivate bool
IsTemplate bool
IsUserConfigurationRepository bool
IsUserClusterurationRepository bool
LicenseInfo *RepositoryLicense
ViewerCanAdminister bool
ViewerDefaultCommitEmail string
Expand Down
2 changes: 1 addition & 1 deletion api/query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ var RepositoryFields = []string{
"isMirror",
"isPrivate",
"isTemplate",
"isUserConfigurationRepository",
"isUserClusterurationRepository",
"licenseInfo",
"viewerCanAdminister",
"viewerDefaultCommitEmail",
Expand Down
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (r *ResolvedRemotes) BaseRepo(io *iostreams.IOStreams) (ghrepo.Interface, e
resolution = ghrepo.FullName(selectedRepo)
}

// cache the result to git config
// cache the result to git Cluster
err := git.SetRemoteResolution(remote.Name, resolution)
return selectedRepo, err
}
Expand Down
6 changes: 3 additions & 3 deletions core/authflow/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ var (
oauthClientSecret = "34ddeff2b558a23d38fba8a6de74f086ede1cc0b"
)

type iconfig interface {
type iCluster interface {
Set(string, string, string) error
Write() error
}

func AuthFlowWithConfig(cfg iconfig, IO *iostreams.IOStreams, hostname, notice string, additionalScopes []string) (string, error) {
func AuthFlowWithCluster(cfg iCluster, IO *iostreams.IOStreams, hostname, notice string, additionalScopes []string) (string, error) {
// TODO this probably shouldn't live in this package. It should probably be in a new package that
// depends on both iostreams and config.
// depends on both iostreams and Cluster.
stderr := IO.ErrOut
cs := IO.ColorScheme()

Expand Down
60 changes: 0 additions & 60 deletions core/config/alias_config.go

This file was deleted.

Loading

0 comments on commit 3e25c3c

Please sign in to comment.