Documentation ¶
Index ¶
- func AWSHostname(isGov bool) string
- func AddGroup(parent *cobra.Command, title string, cmds ...*cobra.Command)
- func Basename(str string) string
- func ExitOnErr(err error)
- func ExponentialBackoff(init, limit time.Duration) func()
- func GenerateLoginURL(creds aws.Credentials, isGov bool) (url.URL, error)
- func GenerateTableHeaders(headers []string) []string
- func GetCredentials(profile string) (aws.Credentials, error)
- func GetFederatedToken(u url.URL) (string, error)
- func GetFlagBool(cmd *cobra.Command, str string) (bool, error)
- func GetFlagString(cmd *cobra.Command, str string) (string, error)
- func GetPullRequestIDs(input PullRequestInput) ([][]string, error)
- func GetPullRequestInfoFromIDs(ccClient *client.CodeCommitClient, input [][]string) ([]*codecommit.GetPullRequestOutput, error)
- func GetPullRequests(input PullRequestInput) ([]*codecommit.GetPullRequestOutput, error)
- func OpenBrowser(url string) error
- func PRsToTable(headers []string, prList []*codecommit.GetPullRequestOutput) *pterm.TablePrinter
- func Spinner(startMsg string, closure SpinnerFunc)
- func SpinnerWithStatusMsg(startMsg string, closure SpinnerMsgFunc)
- func StringifyCredentials(creds aws.Credentials) (string, error)
- type PRMap
- type PullRequestInput
- type Result
- func ApprovePRs(ccClient *client.CodeCommitClient, prMap PRMap, prSelections []string) []Result[string]
- func ClosePRs(ccClient *client.CodeCommitClient, prMap PRMap, prSelections []string) []Result[string]
- func DeleteBranches(ccClient *client.CodeCommitClient, repo string, branches []string) []Result[string]
- func GenerateDiffs(ccClient *client.CodeCommitClient, repo string, ...) []Result[[]byte]
- type ResultMap
- type SpinnerFunc
- type SpinnerMsgFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSHostname ¶
func ExponentialBackoff ¶
func GenerateLoginURL ¶
func GenerateTableHeaders ¶
func GetCredentials ¶
func GetCredentials(profile string) (aws.Credentials, error)
func GetPullRequestIDs ¶
func GetPullRequestIDs(input PullRequestInput) ([][]string, error)
func GetPullRequestInfoFromIDs ¶
func GetPullRequestInfoFromIDs(ccClient *client.CodeCommitClient, input [][]string) ([]*codecommit.GetPullRequestOutput, error)
func GetPullRequests ¶
func GetPullRequests(input PullRequestInput) ([]*codecommit.GetPullRequestOutput, error)
GetPullRequests combines GetPullRequestIDs & GetPullRequestInfoFromIDs into one call
func OpenBrowser ¶
func PRsToTable ¶
func PRsToTable(headers []string, prList []*codecommit.GetPullRequestOutput) *pterm.TablePrinter
func Spinner ¶
func Spinner(startMsg string, closure SpinnerFunc)
func SpinnerWithStatusMsg ¶
func SpinnerWithStatusMsg(startMsg string, closure SpinnerMsgFunc)
func StringifyCredentials ¶
func StringifyCredentials(creds aws.Credentials) (string, error)
Types ¶
type PRMap ¶
type PRMap map[string]*codecommit.GetPullRequestOutput
type PullRequestInput ¶
type PullRequestInput struct { AuthorARN string Client *client.CodeCommitClient Repositories []string Status types.PullRequestStatusEnum }
type Result ¶
func ApprovePRs ¶
func DeleteBranches ¶
func GenerateDiffs ¶
func GenerateDiffs(ccClient *client.CodeCommitClient, repo string, diffOut []*codecommit.GetDifferencesOutput) []Result[[]byte]
type ResultMap ¶
type ResultMap[T any, K comparable, V any] struct { Result T Err error Map map[K]V }
type SpinnerFunc ¶
type SpinnerFunc func()
type SpinnerMsgFunc ¶
Click to show internal directories.
Click to hide internal directories.